diff --git a/lib/EmergencyService/zdxtEmergencyAppService/src/main/java/com/zdxt/app/controller/AppEnforcementRegistrationController.java b/lib/EmergencyService/zdxtEmergencyAppService/src/main/java/com/zdxt/app/controller/AppEnforcementRegistrationController.java index fcab1bb4..619f527a 100644 --- a/lib/EmergencyService/zdxtEmergencyAppService/src/main/java/com/zdxt/app/controller/AppEnforcementRegistrationController.java +++ b/lib/EmergencyService/zdxtEmergencyAppService/src/main/java/com/zdxt/app/controller/AppEnforcementRegistrationController.java @@ -253,7 +253,7 @@ public class AppEnforcementRegistrationController extends BaseController startPage(); List list = enforcementRegistrationService.selectEnterpriseRegistrationList(enforcementRegistration); DictDataBean dictParams = new DictDataBean(); - dictParams.setDictType("check_category"); + dictParams.setDictType("law_enforce_category"); List dicts = dictDataApi.getDictData(dictParams); for (EnforcementRegistration ee : list) { // 判断是否投诉 @@ -268,7 +268,7 @@ public class AppEnforcementRegistrationController extends BaseController } // 执法类别 for (DictDataBean dict : dicts) { - if (dict.getDictValue().equals(ee.getCheckCategory())) { + if (dict.getDictValue().equals(ee.getLawEnforceCategory())) { ee.setCheckCategoryText(dict.getDictLabel()); } } diff --git a/lib/EmergencyService/zdxtEmergencyAppService/src/main/java/com/zdxt/app/controller/AppEnterpriseComplaintController.java b/lib/EmergencyService/zdxtEmergencyAppService/src/main/java/com/zdxt/app/controller/AppEnterpriseComplaintController.java index 1b1fbca6..f0ab43a2 100644 --- a/lib/EmergencyService/zdxtEmergencyAppService/src/main/java/com/zdxt/app/controller/AppEnterpriseComplaintController.java +++ b/lib/EmergencyService/zdxtEmergencyAppService/src/main/java/com/zdxt/app/controller/AppEnterpriseComplaintController.java @@ -83,6 +83,9 @@ public class AppEnterpriseComplaintController extends BaseController { @PostMapping("/queryList") @ResponseBody public TableDataInfo queryList(@RequestBody EnterpriseComplaint enterpriseComplaint) { + DictDataBean dictParams = new DictDataBean(); + dictParams.setDictType("caseType"); + List dicts = dictDataApi.getDictData(dictParams); int total = enterpriseComplaintService.selectTotal(enterpriseComplaint); List pageList = enterpriseComplaintService.selectEnterpriseComplaintList(enterpriseComplaint); //手动分页 @@ -97,6 +100,12 @@ public class AppEnterpriseComplaintController extends BaseController { } }); for (int i = 0; i < pageList.size(); i++) { + // 执法类别 + for (DictDataBean dict : dicts) { + if (dict.getDictValue().equals(pageList.get(i).getEnforceType().toString())) { + pageList.get(i).setEnforceTypeStr(dict.getDictLabel()); + } + } if(StringUtils.isNotEmpty(pageList.get(i).getRelId())){ EnforcementRegistration enforcementRegistration = enforcementRegistrationMapper.selectEnforcementRegistrationById(pageList.get(i).getRelId()); diff --git a/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/controller/StatisticalPanelController.java b/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/controller/StatisticalPanelController.java index 3647a3c7..19e7caa3 100644 --- a/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/controller/StatisticalPanelController.java +++ b/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/controller/StatisticalPanelController.java @@ -1,8 +1,10 @@ package com.zdxt.code.controller; import com.zdxt.auth.dto.DeptBean; +import com.zdxt.auth.dto.DictDataBean; import com.zdxt.auth.dto.UserBean; import com.zdxt.auth.feign.DeptApi; +import com.zdxt.auth.feign.DictDataApi; import com.zdxt.auth.feign.UserApi; import com.zdxt.auth.project.system.dict.service.IDictDataService; import com.zdxt.code.domain.SixAnalysisParams; @@ -36,6 +38,8 @@ public class StatisticalPanelController extends BaseController { @Autowired private IDictDataService iDictDataService; @Autowired private DeptApi deptApi; @Autowired private UserApi userApi; + @Autowired + private DictDataApi dictDataApi; @GetMapping("/statisticalPanelDeptAndUser") @@ -402,13 +406,51 @@ public class StatisticalPanelController extends BaseController { @PostMapping("/analysisNonRegistrationType") @ResponseBody public ZDResponse analysisNonRegistrationType(@RequestBody SixAnalysisParams params){ - List> resMaps = statisticalPaneService.analysisNonRegistrationType(params); + DictDataBean dictParams = new DictDataBean(); + dictParams.setDictType("no_check_category"); + List dicts = dictDataApi.getDictData(dictParams); + List> sourceMap = statisticalPaneService.analysisNonRegistrationType(params); Integer nonAll = statisticalPaneService.analysis_non_enterprisesIns(params); - for (Map resMap : resMaps) { - double num = Double.parseDouble(resMap.get("num").toString()); - String per = this.setPercentage((num / nonAll)); - resMap.put("per", per); + + List> resMaps = new ArrayList<>(); + for (DictDataBean dd : dicts) { + Map tmp = new HashMap<>(); + tmp.put("dict_label", dd.getDictLabel()); + tmp.put("num", 0); + tmp.put("per", "0.0"); + for (Map smap : sourceMap) { + if (dd.getDictLabel().equals(smap.get("dict_label"))) { + double num = Double.parseDouble(smap.get("num").toString()); + String per = this.setPercentage((num / nonAll)); + tmp.put("num", num); + tmp.put("per", per); + break; + } + } + resMaps.add(tmp); } + + +// List> nonTypes = statisticalPaneService.analysisNonRegistrationType(params); +// Integer nonAll = statisticalPaneService.analysis_non_enterprisesIns(params); +// resMap.put("njcNum", nonAll); +// for (DictData dictData : checkCategory) { +// Map tmp = new HashMap<>(); +// tmp.put("label", dictData.getDictLabel()); +// tmp.put("num", 0); +// tmp.put("per", 0.0); +// for (Map map : nonTypes) { +// if (map.get("dict_label").toString().equals(dictData.getDictLabel())) { +// double num = Double.parseDouble(map.get("num").toString()); +// String per = this.setPercentage((num / nonAll)); +// tmp.put("num", num); +// tmp.put("per", per); +// } +// } +// resNonTyps.put("key_"+dictData.getDictValue(), tmp); +// } + + return ZDResponse.success("被查企业", resMaps); } /** 非行政检查类型 - 统计 */ diff --git a/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/domain/EnterpriseComplaint.java b/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/domain/EnterpriseComplaint.java index 43ceecc2..aba9b01b 100644 --- a/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/domain/EnterpriseComplaint.java +++ b/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/domain/EnterpriseComplaint.java @@ -94,7 +94,17 @@ public class EnterpriseComplaint extends BaseDomain */ private String complaintItemNames; private String enforceTypeStr; -private String createTimeStr; + private String complaintTypeStr; + private String createTimeStr; + + public String getComplaintTypeStr() { + return complaintTypeStr; + } + + public void setComplaintTypeStr(String complaintTypeStr) { + this.complaintTypeStr = complaintTypeStr; + } + public String getEnforcementTime() { return enforcementTime; } diff --git a/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/EnforcementRegistrationServiceImpl.java b/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/EnforcementRegistrationServiceImpl.java index 62d88f4d..09c8fa9b 100644 --- a/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/EnforcementRegistrationServiceImpl.java +++ b/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/EnforcementRegistrationServiceImpl.java @@ -371,7 +371,7 @@ public class EnforcementRegistrationServiceImpl implements IEnforcementRegistrat String unionNo = IdUtil.simpleUUID(); enforcementRegistration.setUnionNo(unionNo); enforcementRegistration.setUniteCheck("1"); // 为了适应来代码中的联合执法编码 - enforcementRegistration.setCheckCss(unionNo); // 为了适应来代码中的联合执法编码 +// enforcementRegistration.setCheckCss(unionNo); // 为了适应来代码中的联合执法编码 } // 新增检查登记 // 业务又改了 保存和提交都走新增, 区别是保存后的可以修改, 提交后的不能修改.(这块在controller控制了isSubmit状态) @@ -479,7 +479,7 @@ public class EnforcementRegistrationServiceImpl implements IEnforcementRegistrat String unionNo = IdUtil.simpleUUID(); enforcementRegistration.setUnionNo(unionNo); enforcementRegistration.setUniteCheck("1"); // 为了适应来代码中的联合执法编码 - enforcementRegistration.setCheckCss(unionNo); // 为了适应来代码中的联合执法编码 +// enforcementRegistration.setCheckCss(unionNo); // 为了适应来代码中的联合执法编码 } UserBean user = userApi.getUserByUserId(enforcementRegistration.getUserId()); @@ -1176,7 +1176,7 @@ public class EnforcementRegistrationServiceImpl implements IEnforcementRegistrat // 正常登记为一个小时范围, 补录为为单天 EnforcementRegistration er = new EnforcementRegistration(); er.setEnterpriseNumber(enterpriseNumber); - if ("3".equals(checkCss)) { + if ("9".equals(checkCss)) { // String now = now_tmp.format(date_formatter); er.setCheckCss(enforcementTime); } else if ("edit".equals(checkCss)) { diff --git a/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/StatisticalPanelMapper.xml b/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/StatisticalPanelMapper.xml index 2472f396..fd0ceea8 100644 --- a/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/StatisticalPanelMapper.xml +++ b/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/StatisticalPanelMapper.xml @@ -138,7 +138,7 @@ and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) - and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) + and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) and r.unite_check is not null and r.unite_check is null @@ -191,7 +191,7 @@ and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) - and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) + and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) and r.unite_check is not null and r.unite_check is null @@ -244,7 +244,7 @@ and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) - and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) + and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) and r.unite_check is not null and r.unite_check is null @@ -783,7 +783,7 @@ and r.unite_check is null and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_two like concat('%',#{userId}, '%')) - and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) + and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) @@ -895,7 +895,7 @@ and r.unite_check is null and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_two like concat('%',#{userId}, '%')) - and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) + and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) @@ -957,7 +957,7 @@ and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) - and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) + and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) and r.unite_check is not null and r.unite_check is null @@ -1018,7 +1018,7 @@ and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) - and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) + and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) and r.unite_check is not null and r.unite_check is null @@ -1154,7 +1154,7 @@ and r.bureau_dept_id is not null - and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) + and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) and DATE_FORMAT(r.enforcement_time,'%Y-%m-%d') >= DATE_FORMAT(#{beginTime},'%Y-%m-%d') @@ -1179,7 +1179,7 @@ and (r.union_no IS NOT NULL and r.union_no != '') and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) - and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) + and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_two like concat('%',#{userId}, '%')) @@ -1208,7 +1208,7 @@ and (r.union_no IS NOT NULL and r.union_no != '') and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) - and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) + and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_two like concat('%',#{userId}, '%')) @@ -1233,7 +1233,7 @@ and r.bureau_dept_id is not null - and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) + and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) and DATE_FORMAT(r.enforcement_time,'%Y-%m-%d') >= DATE_FORMAT(#{beginTime},'%Y-%m-%d') @@ -1263,7 +1263,7 @@ and r.union_no IS NOT NULL and r.union_no != '' and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) - and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) + and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_two like concat('%',#{userId}, '%')) and DATE_FORMAT(r.enforcement_time,'%Y-%m-%d') >= DATE_FORMAT(#{beginTime},'%Y-%m-%d') @@ -1294,7 +1294,7 @@ and (r.union_no IS NOT NULL and r.union_no != '') and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) - and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) + and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_two like concat('%',#{userId}, '%')) @@ -1329,7 +1329,7 @@ and (r.union_no IS NOT NULL and r.union_no != '') and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) - and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) + and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_two like concat('%',#{userId}, '%')) @@ -1364,7 +1364,7 @@ and (r.union_no is null or r.union_no = '') and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) - and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) + and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_two like concat('%',#{userId}, '%')) and DATE_FORMAT(r.enforcement_time,'%Y-%m-%d') >= DATE_FORMAT(#{beginTime},'%Y-%m-%d') @@ -1388,7 +1388,7 @@ and r.union_no is not null and r.union_no != '' and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) - and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) + and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_two like concat('%',#{userId}, '%')) and DATE_FORMAT(r.enforcement_time,'%Y-%m-%d') >= DATE_FORMAT(#{beginTime},'%Y-%m-%d') @@ -1416,7 +1416,7 @@ and (r.union_no is null or r.union_no = '') and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) - and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) + and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_two like concat('%',#{userId}, '%')) @@ -1444,7 +1444,7 @@ and r.union_no is not null and r.union_no != '' and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) - and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) + and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_two like concat('%',#{userId}, '%')) @@ -1476,7 +1476,7 @@ and (r.union_no is null or r.union_no = '') and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) - and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) + and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_two like concat('%',#{userId}, '%')) @@ -1504,7 +1504,7 @@ and r.union_no is not null and r.union_no != '' and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) - and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) + and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_two like concat('%',#{userId}, '%')) @@ -1535,7 +1535,7 @@ and r.bureau_dept_id is not null and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) - and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) + and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) and( r.law_enforcer_id=#{userId} or r.law_enforcer_id_two like concat('%',#{userId}, '%')) and DATE_FORMAT(r.enforcement_time,'%Y-%m-%d') >= DATE_FORMAT(#{beginTime},'%Y-%m-%d') @@ -1561,7 +1561,7 @@ and r.bureau_dept_id is not null and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) - and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) + and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) and (r.union_no is not null and r.union_no != '') and (r.union_no is null or r.union_no = '') @@ -1729,7 +1729,7 @@ and r.bureau_dept_id is not null and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) - and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) + and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) and (r.union_no is not null and r.union_no != '') and (r.union_no is null or r.union_no = '') @@ -1757,7 +1757,7 @@ and r.bureau_dept_id is not null and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) - and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) + and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) and (r.union_no is not null and r.union_no != '') and (r.union_no is null or r.union_no = '') @@ -1789,7 +1789,7 @@ and r.bureau_dept_id is not null and r.bureau_dept_id in (select dept_id from sys_dept where zone = #{params.zone}) - and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) + and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) and (r.union_no is not null and r.union_no != '') and (r.union_no is null or r.union_no = '') @@ -1819,7 +1819,7 @@ and r.bureau_dept_id is not null - and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) + and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) and DATE_FORMAT(r.enforcement_time,'%Y-%m-%d') >= DATE_FORMAT(#{beginTime},'%Y-%m-%d') @@ -1868,7 +1868,7 @@ and r.bureau_dept_id is not null - and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) + and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) and (r.union_no is not null and r.union_no != '') and (r.union_no is null or r.union_no = '') @@ -1897,7 +1897,7 @@ and r.bureau_dept_id is not null - and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) + and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) and DATE_FORMAT(r.enforcement_time,'%Y-%m-%d') >= DATE_FORMAT(#{beginTime},'%Y-%m-%d') @@ -1926,7 +1926,7 @@ and r.bureau_dept_id is not null - and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) + and r.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId} or sd.area_node = #{deptId}) and (r.union_no is not null and r.union_no != '') and (r.union_no is null or r.union_no = '') @@ -1943,35 +1943,34 @@ +