Nessuna descrizione

TPestcObservePointMapper.xml 1.8KB

12345678910111213141516171819202122232425262728293031323334353637
  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.yt.zhylplat.modulePest.observePoint.mapper.TPestcObservePointMapper">
  4. <!-- 通用查询映射结果 -->
  5. <resultMap id="BaseResultMap" type="com.yt.zhylplat.modulePest.observePoint.entity.TPestcObservePoint">
  6. <id column="id" property="id" />
  7. <result column="point_name" property="pointName" />
  8. <result column="maintenance_company_id" property="maintenanceCompanyId" />
  9. <result column="maintenance_company_name" property="maintenanceCompanyName" />
  10. <result column="type" property="type" />
  11. <result column="amount" property="amount" />
  12. <result column="create_user_id" property="createUserId" />
  13. <result column="create_date" property="createDate" />
  14. <result column="update_user_id" property="updateUserId" />
  15. <result column="update_date" property="updateDate" />
  16. <result column="del_flg" property="delFlg" />
  17. <result column="remark" property="remark" />
  18. </resultMap>
  19. <!-- 通用查询结果列 -->
  20. <sql id="Base_Column_List">
  21. id, point_name, maintenance_company_id, maintenance_company_name, type, amount, create_user_id, create_date, update_user_id, update_date, del_flg, remark
  22. </sql>
  23. <select id="referPage" resultType="com.yt.zhylplat.modulePest.observePoint.entity.TPestcObservePoint">
  24. select * from T_Pestc_Observe_Point p
  25. where
  26. del_flg=0
  27. <if test="rp.pointName!=null and rp.pointName!=''">
  28. and p.point_name like concat('%',#{rp.pointName},'%')
  29. </if>
  30. <if test="rp.maintenanceCompanyId!=null">
  31. and p.maintenance_company_id=#{rp.maintenanceCompanyId}
  32. </if>
  33. </select>
  34. </mapper>