Commit 0d4d96ae authored by duanzhihong's avatar duanzhihong

查找

parent 0a48e5f4
...@@ -93,10 +93,10 @@ ...@@ -93,10 +93,10 @@
<if test="taskStatus != null and taskStatus != ''"> <if test="taskStatus != null and taskStatus != ''">
and task.TASK_STATUS = #{taskStatus} and task.TASK_STATUS = #{taskStatus}
</if> </if>
<if test="isReturn != null and isReturn == 0"> <if test="isReturn != null and isReturn !='' and isReturn == 0">
and cate.is_valid = 1 and task.task_status in (0,4,5) and cate.is_valid = 1 and task.task_status in (0,4,5)
</if> </if>
<if test="isReturn != null and isReturn == 1"> <if test="isReturn != null and isReturn !='' and isReturn == 1">
and cate.is_valid = 0 or cate.is_valid is null and cate.is_valid = 0 or cate.is_valid is null
</if> </if>
</where> </where>
......
...@@ -44,8 +44,8 @@ ...@@ -44,8 +44,8 @@
LEFT JOIN CH_APR_TASK t ON i.disab_info_id = t.DISABLE_INFO_ID LEFT JOIN CH_APR_TASK t ON i.disab_info_id = t.DISABLE_INFO_ID
<where> <where>
t.TASK_STATUS = 3 t.TASK_STATUS = 3
<if test="chSrvOrgan.srvOrganId != null and chSrvOrgan.srvOrganId != ''"> <if test="chSrvOrgan.organId != null and chSrvOrgan.organId != ''">
AND o.organ_id = #{chSrvOrgan.srvOrganId} AND o.organ_id = #{chSrvOrgan.organId}
</if> </if>
<if test="disableInfo.realName != null and disableInfo.realName != ''"> <if test="disableInfo.realName != null and disableInfo.realName != ''">
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
AND s.srv_mode_id = #{chSrvSend.srvModeId} AND s.srv_mode_id = #{chSrvSend.srvModeId}
</if> </if>
<if test="chSrvSend.status != null and chSrvSend.status != ''"> <if test="chSrvSend.status != null ">
AND (s.status is not null and s.status = #{chSrvSend.status}) AND (s.status is not null and s.status = #{chSrvSend.status})
</if> </if>
</where> </where>
......
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