BasePigpenMapper.xml 978 B

123456789101112131415161718192021
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.huimv.admin.mapper.BasePigpenMapper">
  4. <!-- 通用查询映射结果 -->
  5. <resultMap id="BaseResultMap" type="com.huimv.admin.entity.BasePigpen">
  6. <id column="id" property="id" />
  7. <result column="build_name" property="buildName" />
  8. <result column="parent_id" property="parentId" />
  9. <result column="f_type" property="fType" />
  10. <result column="farm_id" property="farmId" />
  11. <result column="sort" property="sort" />
  12. <result column="other1" property="other1" />
  13. <result column="other2" property="other2" />
  14. <result column="other3" property="other3" />
  15. </resultMap>
  16. <select id="getMaxBuildNum" resultType="java.lang.Integer">
  17. SELECT MAX(other1) FROM `base_pigpen` WHERE parent_id = #{parentId}
  18. </select>
  19. </mapper>