Commit 4791f598 authored by 高建强's avatar 高建强

item:修改监督检查项分页条件

parent 5d71d5fe
...@@ -49,14 +49,16 @@ ...@@ -49,14 +49,16 @@
COUNT(1) COUNT(1)
FROM FROM
p_route_point_item pi p_route_point_item pi
LEFT JOIN p_input_item i ON i.id = pi.input_item_id LEFT JOIN p_input_item i ON i.id = pi.input_item_id
<if test="name!=null"> and i.name like concat(concat("%",#{name}),"%")</if> <where>
<if test="itemTypeClassifyIds != null and itemTypeClassifyIds != ''"> and i.item_type_classify_ids = #{itemTypeClassifyIds}</if> <if test="name!=null"> and i.name like concat(concat("%",#{name}),"%")</if>
<if test="planId!=null"> and pi.plan_id = #{planId} </if> <if test="itemTypeClassifyIds != null and itemTypeClassifyIds != ''"> and i.item_type_classify_ids = #{itemTypeClassifyIds}</if>
<if test="orgCode!=null"> and i.org_Code = #{orgCode}</if> <if test="planId!=null"> and pi.plan_id = #{planId} </if>
<if test="orgCode!=null"> and i.org_Code = #{orgCode}</if>
</where>
</select> </select>
<!--查询 --> <!--查询 -->
<select id="queryPage" resultMap="com.yeejoin.amos.supervision.business.vo.RoutePointItemVo"> <select id="queryPage" resultType="com.yeejoin.amos.supervision.business.vo.RoutePointItemVo">
SELECT SELECT
pi.id, pi.id,
i.id AS itemId, i.id AS itemId,
...@@ -69,10 +71,12 @@ ...@@ -69,10 +71,12 @@
FROM FROM
p_route_point_item pi p_route_point_item pi
LEFT JOIN p_input_item i ON i.id = pi.input_item_id LEFT JOIN p_input_item i ON i.id = pi.input_item_id
<if test="name!=null"> and i.name like concat(concat("%",#{name}),"%")</if> <where>
<if test="itemTypeClassifyIds != null and itemTypeClassifyIds != ''"> and i.item_type_classify_ids = #{itemTypeClassifyIds}</if> <if test="name!=null"> and i.name like concat(concat("%",#{name}),"%")</if>
<if test="planId!=null"> and pi.plan_id = #{planId} </if> <if test="itemTypeClassifyIds != null and itemTypeClassifyIds != ''"> and i.item_type_classify_ids = #{itemTypeClassifyIds}</if>
<if test="orgCode!=null"> and i.org_Code = #{orgCode}</if> <if test="planId!=null"> and pi.plan_id = #{planId} </if>
<if test="orgCode!=null"> and i.org_Code = #{orgCode}</if>
</where>
<choose> <choose>
<when test="pageSize==-1"></when> <when test="pageSize==-1"></when>
<when test="pageSize!=-1">limit #{offset},#{pageSize}</when> <when test="pageSize!=-1">limit #{offset},#{pageSize}</when>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment