| | |
| | | <if test="taskPalce.id != null ">and jtpr.id = #{taskPalce.id}</if> |
| | | <if test="taskPalce.placeCheckId != null ">and jtpr.place_check_id = #{taskPalce.placeCheckId}</if> |
| | | <if test="taskPalce.taskId != null ">and jtpr.task_id = #{taskPalce.taskId}</if> |
| | | <if test="taskPalce.status != null ">and jtpr.status = #{taskPalce.status}</if> |
| | | <if test="taskPalce.taskName != null and taskPalce.taskName != ''">and jtpr.task_name = #{taskPalce.taskName} |
| | | <if test="taskPalce.status != null and taskPalce.status != 2 ">and jtpr.status = #{taskPalce.status}</if> |
| | | |
| | | <if test="taskPalce.status != null and taskPalce.status = 2 ">and jtpr.status in (2,3)</if> |
| | | |
| | | <if test="taskPalce.taskName != null and taskPalce.taskName != ''">and jtpr.task_name = |
| | | #{taskPalce.taskName} |
| | | </if> |
| | | |
| | | <if test="taskPalce.startTime!=null and taskPalce.startTime!=''"> |
| | |
| | | <if test="taskPalce.rectificationCompleteTime != null ">and jtpr.rectification_complete_time = |
| | | #{taskPalce.rectificationCompleteTime} |
| | | </if> |
| | | <if test="taskPalce.rectificationFlag != null ">and jtpr.rectification_flag = #{taskPalce.rectificationFlag}</if> |
| | | <if test="taskPalce.rectificationFlag != null ">and jtpr.rectification_flag = |
| | | #{taskPalce.rectificationFlag} |
| | | </if> |
| | | <if test="taskPalce.punishFlag != null ">and jtpr.punish_flag = #{taskPalce.punishFlag}</if> |
| | | <if test="taskPalce.policeStation != null and taskPalce.policeStation != ''">and jtpr.police_station = |
| | | #{taskPalce.policeStation} |
| | |
| | | <choose> |
| | | <when test="regionChildCodesList !=null and regionChildCodesList.size()>0"> |
| | | and jpag.community_code in |
| | | <foreach collection="regionChildCodesList" item="code" open="(" close=")" separator=","> |
| | | <foreach collection="regionChildCodesList" item="code" open="(" close=")" |
| | | separator=","> |
| | | #{code} |
| | | </foreach> |
| | | </when> |
| | |
| | | <if test="taskPalce.placeCheckId != null ">and jtpr.place_check_id = #{taskPalce.placeCheckId}</if> |
| | | <if test="taskPalce.taskId != null ">and jtpr.task_id = #{taskPalce.taskId}</if> |
| | | <if test="taskPalce.status != null ">and jtpr.status = #{taskPalce.status}</if> |
| | | <if test="taskPalce.taskName != null and taskPalce.taskName != ''">and jtpr.task_name = #{taskPalce.taskName} |
| | | <if test="taskPalce.taskName != null and taskPalce.taskName != ''">and jtpr.task_name = |
| | | #{taskPalce.taskName} |
| | | </if> |
| | | |
| | | <if test="taskPalce.startTime!=null and taskPalce.startTime!=''"> |
| | |
| | | <if test="taskPalce.rectificationCompleteTime != null ">and jtpr.rectification_complete_time = |
| | | #{taskPalce.rectificationCompleteTime} |
| | | </if> |
| | | <if test="taskPalce.rectificationFlag != null ">and jtpr.rectification_flag = #{taskPalce.rectificationFlag}</if> |
| | | <if test="taskPalce.rectificationFlag != null ">and jtpr.rectification_flag = |
| | | #{taskPalce.rectificationFlag} |
| | | </if> |
| | | <if test="taskPalce.punishFlag != null ">and jtpr.punish_flag = #{taskPalce.punishFlag}</if> |
| | | <if test="taskPalce.policeStation != null and taskPalce.policeStation != ''">and jtpr.police_station = |
| | | #{taskPalce.policeStation} |
| | |
| | | <choose> |
| | | <when test="regionChildCodesList !=null and regionChildCodesList.size()>0"> |
| | | and jpag.community_code in |
| | | <foreach collection="regionChildCodesList" item="code" open="(" close=")" separator=","> |
| | | <foreach collection="regionChildCodesList" item="code" open="(" close=")" |
| | | separator=","> |
| | | #{code} |
| | | </foreach> |
| | | </when> |