DistrictMapper.xml
659 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="cn.runsa.portal.base.dao.DistrictMapper" >
<resultMap id="BaseResultMap" type="cn.runsa.portal.base.entity.District" >
<id column="diId" property="id" />
<result column="ciId" property="ciid"/>
<result column="diName" property="name"/>
<result column="diSort" property="sort"/>
</resultMap>
<select id="selectByCiId" resultMap="BaseResultMap" parameterType="java.lang.Integer">
SELECT *
FROM
mtDistrict
where ciId=#{ciid}
order by diSort ASC
</select>
</mapper>