| | |
| | | </where> |
| | | </select> |
| | | |
| | | <!--取保候审人员查询--> |
| | | <select id="getBailReportingPage" resultType="org.springblade.modules.task.vo.TaskVO"> |
| | | SELECT |
| | | IFNULL( jda.address_name, jp.location ) AS address_name, |
| | | jtbre.apply_name, |
| | | jgr.district_code aoiCode, |
| | | jh.district_code aoiCode, |
| | | jda.region_code, |
| | | jg.community_code neiCode, |
| | | jc.street_code streetCode, |
| | |
| | | FROM |
| | | jczz_task jt |
| | | LEFT JOIN jczz_doorplate_address jda ON jda.address_code = jt.house_code |
| | | LEFT JOIN jczz_place jp ON jt.house_code = jp.house_code and jp.is_deleted = 0 |
| | | LEFT JOIN jczz_grid_range jgr on jgr.house_code= jt.house_code |
| | | LEFT JOIN jczz_grid jg on jg.id = jgr.grid_id and jg.is_deleted = 0 |
| | | LEFT JOIN jczz_house jh ON jt.house_code = jh.house_code and jh.is_deleted = 0 |
| | | LEFT JOIN jczz_grid jg on jg.grid_code = jh.grid_code and jg.is_deleted = 0 |
| | | LEFT JOIN jczz_police_affairs_grid jpag on jh.jw_grid_code= jpag.jw_grid_code and jpag.is_deleted = 0 |
| | | LEFT JOIN jczz_community jc on jc.`code`= jg.community_code and jc.is_deleted = 0 |
| | | LEFT JOIN jczz_task_bail_reporting_event jtbre on jtbre.task_id = jt.id and jtbre.is_deleted = 0 |
| | | LEFT JOIN blade_user bu on bu.id = jtbre.check_user_id and bu.is_deleted = 0 |
| | |
| | | </if> |
| | | |
| | | <if test="task.districtName != null and task.districtName != null"> |
| | | and jgr.district_name like concat('%', #{task.districtName}, '%') |
| | | and jh.district_name like concat('%', #{task.districtName}, '%') |
| | | </if> |
| | | |
| | | <if test="task.frequency != null and task.frequency != ''"> |