| | |
| | | jczz_task_place_rectification jtpr |
| | | LEFT JOIN jczz_place jp ON jtpr.house_code = jp.house_code and jp.is_deleted = 0 |
| | | LEFT JOIN jczz_grid jg ON jg.grid_code = jp.grid_code and jg.is_deleted = 0 |
| | | LEFT JOIN blade_region br ON br.`code` = jg.community_code |
| | | LEFT JOIN jczz_place_ext jpe ON jpe.place_id = jp.id |
| | | LEFT JOIN blade_user bu ON bu.id = jtpr.create_user |
| | | LEFT JOIN jczz_police_affairs_grid jpag on jp.jw_grid_code= jpag.jw_grid_code |
| | | LEFT JOIN jczz_place_ext jpe ON jpe.place_id = jp.id and jpe.is_deleted = 0 |
| | | LEFT JOIN blade_user bu ON bu.id = jtpr.create_user and bu.is_deleted = 0 |
| | | LEFT JOIN jczz_police_affairs_grid jpag on jp.jw_grid_code= jpag.jw_grid_code and jpag.is_deleted = 0 |
| | | LEFT JOIN blade_region br ON br.`code` = jpag.community_code |
| | | <where> |
| | | <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 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.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} |