DspAreaMapper.xml 879 Bytes
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zteits.parking.module.park.dsp.dal.mysql.DspAreaMapper">

    <!-- 行政区划只读:districtCode 的合法性与三级 id 都以此表为准 -->
    <select id="selectByCode" resultType="com.zteits.parking.module.park.dsp.dal.dataobject.DspAreaRow">
        SELECT id, area_code, area_name, area_type, parent_id
          FROM tb_area
         WHERE area_code = #{areaCode}
           AND data_state = 1
         LIMIT 1
    </select>

    <select id="selectById" resultType="com.zteits.parking.module.park.dsp.dal.dataobject.DspAreaRow">
        SELECT id, area_code, area_name, area_type, parent_id
          FROM tb_area
         WHERE id = #{id}
           AND data_state = 1
    </select>

</mapper>