| | |
| | | <if test="task.isDeleted != null ">and jt.is_deleted = #{task.isDeleted}</if> |
| | | <if test="task.houseCode != null and task.houseCode != ''">and jt.house_code = #{task.houseCode}</if> |
| | | <!-- 取保候审 --> |
| | | <if test="reportType != null and reportType == 1 "> |
| | | <if test="task.reportType != null and task.reportType == 1 "> |
| | | and jt.report_type = 1 |
| | | </if> |
| | | <!-- 场所店铺 --> |
| | | <if test="reportType != null and reportType == 2 "> |
| | | <if test="task.reportType != null and task.reportType == 2 "> |
| | | and jt.report_type in (2,3,4,5,6) |
| | | </if> |
| | | |
| | |
| | | |
| | | <select id="getStatistics" resultType="java.lang.Integer"> |
| | | |
| | | SELECT count(1) |
| | | FROM jczz_gridman jgm |
| | | LEFT JOIN jczz_grid jg ON jgm.grid_id = jg.id |
| | | LEFT JOIN jczz_grid_range jgr ON jg.id = jgr.grid_id |
| | | LEFT JOIN jczz_task_report_for_repairs jtr ON jgr.house_code = jtr.address_code |
| | | LEFT JOIN jczz_doorplate_address jda ON jda.address_code = jtr.address_code |
| | | WHERE jg.is_deleted = 0 |
| | | SELECT |
| | | count(1) |
| | | FROM |
| | | jczz_gridman jgm |
| | | LEFT JOIN jczz_grid jg ON jgm.grid_id = jg.id |
| | | LEFT JOIN jczz_grid_range jgr ON jg.id = jgr.grid_id |
| | | LEFT JOIN jczz_task_report_for_repairs jtr ON jgr.house_code = jtr.address_code |
| | | LEFT JOIN jczz_doorplate_address jda ON jda.address_code = jtr.address_code |
| | | WHERE |
| | | jg.is_deleted = 0 |
| | | and jtr.confirm_flag = 1 |
| | | AND jtr.user_id = #{userId} |
| | | AND jgm.user_id = #{userId} |
| | | |
| | | </select> |
| | | |
| | |
| | | list = gridService.getAddressCodeListByUserId(AuthUtil.getUserId()); |
| | | } |
| | | } |
| | | // 没有范围,不查询数据 |
| | | if (list.size() > 0) { |
| | | return page.setRecords(baseMapper.selectTaskReportForRepairsPage(page, taskReportForRepairs, list)); |
| | | } |
| | | return page.setRecords(new ArrayList<>()); |
| | | return page.setRecords(baseMapper.selectTaskReportForRepairsPage(page, taskReportForRepairs,list)); |
| | | } |
| | | |
| | | /** |