TownMapper.xml 647 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.TownMapper" >
  <resultMap id="BaseResultMap" type="cn.runsa.portal.base.entity.Town" >
    <id column="toId" property="id" />
    <result column="diId" property="diid"/>
    <result column="toName" property="name"/>
    <result column="toSort" property="sort"/>
  </resultMap>
  <select id="selectByDiId" resultMap="BaseResultMap"  parameterType="java.lang.Integer">
	SELECT *
	FROM
	mtTown
	where diId=#{diid}
	order by toSort ASC
  </select>
</mapper>