| 12345678910111213141516171819202122232425262728293031323334353637 |
- <?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.yt.zhylplat.modulePest.observePoint.mapper.TPestcObservePointMapper">
- <!-- 通用查询映射结果 -->
- <resultMap id="BaseResultMap" type="com.yt.zhylplat.modulePest.observePoint.entity.TPestcObservePoint">
- <id column="id" property="id" />
- <result column="point_name" property="pointName" />
- <result column="maintenance_company_id" property="maintenanceCompanyId" />
- <result column="maintenance_company_name" property="maintenanceCompanyName" />
- <result column="type" property="type" />
- <result column="amount" property="amount" />
- <result column="create_user_id" property="createUserId" />
- <result column="create_date" property="createDate" />
- <result column="update_user_id" property="updateUserId" />
- <result column="update_date" property="updateDate" />
- <result column="del_flg" property="delFlg" />
- <result column="remark" property="remark" />
- </resultMap>
- <!-- 通用查询结果列 -->
- <sql id="Base_Column_List">
- id, point_name, maintenance_company_id, maintenance_company_name, type, amount, create_user_id, create_date, update_user_id, update_date, del_flg, remark
- </sql>
- <select id="referPage" resultType="com.yt.zhylplat.modulePest.observePoint.entity.TPestcObservePoint">
- select * from T_Pestc_Observe_Point p
- where
- del_flg=0
- <if test="rp.pointName!=null and rp.pointName!=''">
- and p.point_name like concat('%',#{rp.pointName},'%')
- </if>
- <if test="rp.maintenanceCompanyId!=null">
- and p.maintenance_company_id=#{rp.maintenanceCompanyId}
- </if>
- </select>
- </mapper>
|