diff --git a/zdxt-modules/zdxt-enforcement-code/src/main/java/com/zdxt/enforcementcode/controller/web/supervision/StatisticalPanelCityController.java b/zdxt-modules/zdxt-enforcement-code/src/main/java/com/zdxt/enforcementcode/controller/web/supervision/StatisticalPanelCityController.java index 4d3a2146..73ae1783 100644 --- a/zdxt-modules/zdxt-enforcement-code/src/main/java/com/zdxt/enforcementcode/controller/web/supervision/StatisticalPanelCityController.java +++ b/zdxt-modules/zdxt-enforcement-code/src/main/java/com/zdxt/enforcementcode/controller/web/supervision/StatisticalPanelCityController.java @@ -74,7 +74,7 @@ public class StatisticalPanelCityController { return R.ok("联合检查", resMap); } - /** 被执法企业次数排行 */ + /** 监督端-被执法企业次数排行 */ @SaIgnore @PostMapping("/queryEnfEntSort") @ResponseBody @@ -85,7 +85,7 @@ public class StatisticalPanelCityController { return R.ok("被执法企业次数排行", resMap); } - /** 执法单位执法数量排行 */ + /** 监督端-执法单位执法数量排行 */ @SaIgnore @PostMapping("/queryEnforcementSort") @ResponseBody @@ -96,7 +96,7 @@ public class StatisticalPanelCityController { return R.ok("执法单位执法数量排行", resMap); } - /** 被投诉单位次数排行 */ + /** 监督端-被投诉单位次数排行 */ @SaIgnore @PostMapping("/queryEntCSort") @ResponseBody @@ -107,7 +107,7 @@ public class StatisticalPanelCityController { return R.ok("被投诉单位次数排行", resMap); } - /** 委托执法数量及占比 */ + /** 监督端-委托执法数量及占比 */ @SaIgnore @PostMapping("/queryAutoRate") @ResponseBody @@ -118,7 +118,7 @@ public class StatisticalPanelCityController { return R.ok("委托执法数量及占比", resMap); } - /** 联合检查单位排行 */ + /**监督端- 联合检查单位排行 */ @SaIgnore @PostMapping("/queryUnionSort") @ResponseBody @@ -129,7 +129,7 @@ public class StatisticalPanelCityController { return R.ok("被执法企业次数排行", resMap); } - /** 执法人员涉企检查数是排行 */ + /**监督端- 执法人员涉企检查数是排行 */ @SaIgnore @PostMapping("/queryLawEntSort") @ResponseBody diff --git a/zdxt-modules/zdxt-enforcement-code/src/main/java/com/zdxt/enforcementcode/controller/web/supervision/StatisticalPanelController.java b/zdxt-modules/zdxt-enforcement-code/src/main/java/com/zdxt/enforcementcode/controller/web/supervision/StatisticalPanelController.java index 11bcf141..3f7126f7 100644 --- a/zdxt-modules/zdxt-enforcement-code/src/main/java/com/zdxt/enforcementcode/controller/web/supervision/StatisticalPanelController.java +++ b/zdxt-modules/zdxt-enforcement-code/src/main/java/com/zdxt/enforcementcode/controller/web/supervision/StatisticalPanelController.java @@ -188,8 +188,7 @@ public class StatisticalPanelController { @PostMapping("/analysisNonRegistrationType") @ResponseBody public R >> analysisNonRegistrationType(@RequestBody SixAnalysisParamsBo params){ - //SysDictDataVo dictParams = new SysDictDataVo(); - //dictParams.setDictType("no_check_category"); + List dicts = sysDictDataService.selectDictDataByType("no_check_category"); List> sourceMap = statisticalPaneService.analysisNonRegistrationType(params); Integer nonAll = statisticalPaneService.analysis_non_enterprisesIns(params); @@ -323,17 +322,12 @@ public class StatisticalPanelController { // 被检查企业数 params.setQy(deptParams.getDeptName()); -// Integer ent_all_num = statisticalPaneService.analysisEnterprisesCountAll(params); Integer ent_num = statisticalPaneService.analysisEnterprises(params); -// String ent_per = this.setPercentage((double)ent_num / ent_all_num); resMap.put("entNum", ent_num); -// resMap.put("entPer", ent_per); // 投诉 Integer com_num = statisticalPaneService.analysisEnterprisesComplaint(params); -// String com_per = this.setPercentage((double)com_num / all_num); resMap.put("comNum", com_num); -// resMap.put("comPer", com_per); // 非行政执法 Map resNonTyps = new HashMap<>(); @@ -362,7 +356,7 @@ public class StatisticalPanelController { } /** - * 查询部门接口 + * 监督端-查询部门接口 */ @SaIgnore @PostMapping("/queryDept") @@ -373,11 +367,17 @@ public class StatisticalPanelController { } @SaIgnore + /** + * 监督端-查询部门接口长度 + */ @PostMapping("/queryDeptLength") @ResponseBody public R> queryDeptLength(@RequestBody SysDeptBo bo){ return R.ok("部门列表长度", sysDeptService.selectDepts(bo)); } + /** + * 监督端-部门列表-街道和区直 + */ @SaIgnore @PostMapping("/queryStreetAndDistrict") @ResponseBody diff --git a/zdxt-modules/zdxt-enforcement-code/src/main/java/com/zdxt/enforcementcode/controller/web/supervision/StatisticalPanelDistrictController.java b/zdxt-modules/zdxt-enforcement-code/src/main/java/com/zdxt/enforcementcode/controller/web/supervision/StatisticalPanelDistrictController.java index 879c564c..6e29adb2 100644 --- a/zdxt-modules/zdxt-enforcement-code/src/main/java/com/zdxt/enforcementcode/controller/web/supervision/StatisticalPanelDistrictController.java +++ b/zdxt-modules/zdxt-enforcement-code/src/main/java/com/zdxt/enforcementcode/controller/web/supervision/StatisticalPanelDistrictController.java @@ -62,7 +62,7 @@ public class StatisticalPanelDistrictController { } - /** 市数据 */ + /** 监督端-市数据 */ @SaIgnore @PostMapping("/collectStatistics") @ResponseBody @@ -73,7 +73,7 @@ public class StatisticalPanelDistrictController { return R.ok("联合检查", resMap); } - /** 被执法企业次数排行 */ + /** 监督端-被执法企业次数排行 */ @SaIgnore @PostMapping("/queryEnfEntSort") @ResponseBody @@ -84,7 +84,7 @@ public class StatisticalPanelDistrictController { return R.ok("被执法企业次数排行", resMap); } - /** 执法单位执法数量排行 */ + /** 监督端-执法单位执法数量排行 */ @SaIgnore @PostMapping("/queryEnforcementSort") @ResponseBody @@ -95,7 +95,7 @@ public class StatisticalPanelDistrictController { return R.ok("执法单位执法数量排行", resMap); } - /** 被投诉单位次数排行 */ + /** 监督端-被投诉单位次数排行 */ @SaIgnore @PostMapping("/queryEntCSort") @ResponseBody @@ -106,7 +106,7 @@ public class StatisticalPanelDistrictController { return R.ok("被投诉单位次数排行", resMap); } - /** 委托执法数量及占比 */ + /** 监督端-委托执法数量及占比 */ @SaIgnore @PostMapping("/queryAutoRate") @ResponseBody diff --git a/zdxt-modules/zdxt-enforcement-code/src/main/resources/mapper/enforcementcode/StatisticalPanelCityMapper.xml b/zdxt-modules/zdxt-enforcement-code/src/main/resources/mapper/enforcementcode/StatisticalPanelCityMapper.xml index bc7b6f20..a7049e31 100644 --- a/zdxt-modules/zdxt-enforcement-code/src/main/resources/mapper/enforcementcode/StatisticalPanelCityMapper.xml +++ b/zdxt-modules/zdxt-enforcement-code/src/main/resources/mapper/enforcementcode/StatisticalPanelCityMapper.xml @@ -4,126 +4,6 @@ "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - r.id, r.law_enforcement as lawEnforcement, diff --git a/zdxt-modules/zdxt-enforcement-code/src/main/resources/mapper/enforcementcode/StatisticalPanelDistrictMapper.xml b/zdxt-modules/zdxt-enforcement-code/src/main/resources/mapper/enforcementcode/StatisticalPanelDistrictMapper.xml index 60aef005..7ebf4049 100644 --- a/zdxt-modules/zdxt-enforcement-code/src/main/resources/mapper/enforcementcode/StatisticalPanelDistrictMapper.xml +++ b/zdxt-modules/zdxt-enforcement-code/src/main/resources/mapper/enforcementcode/StatisticalPanelDistrictMapper.xml @@ -4,126 +4,6 @@ "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - r.id, r.law_enforcement as lawEnforcement, diff --git a/zdxt-modules/zdxt-enforcement-code/src/main/resources/mapper/enforcementcode/StatisticalPanelMapper.xml b/zdxt-modules/zdxt-enforcement-code/src/main/resources/mapper/enforcementcode/StatisticalPanelMapper.xml index 6ece393f..afb9e271 100644 --- a/zdxt-modules/zdxt-enforcement-code/src/main/resources/mapper/enforcementcode/StatisticalPanelMapper.xml +++ b/zdxt-modules/zdxt-enforcement-code/src/main/resources/mapper/enforcementcode/StatisticalPanelMapper.xml @@ -29,13 +29,6 @@ - - - - - - - @@ -122,7 +115,6 @@ select count(1) from enterprise_law_enforcement n - and n.enterprise_number is not null @@ -293,14 +258,7 @@ and n.dept_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) and( n.law_enforcer_id=#{userId} or n.law_enforcer_id_two=#{userId}) - - - - - - - - + and YEAR(n.check_time)=#{year} @@ -324,7 +282,6 @@ select count(1) from complaint_statistics c - and (c.rid is not null or c.complaint_department_id is not null) and c.enforce_type is not null @@ -422,14 +361,7 @@ and c.complaint_department_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) and( r.law_enforcer_id=#{userId} or c.law_enforcer_id_two=#{userId}) - - - - - - - - + and YEAR(c.complaint_time)=#{year} @@ -453,7 +385,6 @@ select COALESCE(SUM(w.enforcement_number), 0) from law_enforcement_warning_list w - and w.enterprise_number is not null and warn_type = 1 @@ -549,14 +464,6 @@ and w.enforcement_department_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) - - - - - - - - and YEAR(w.create_time)=#{year} @@ -580,7 +487,6 @@ select r.enterprise_name, count(1) as num from enforcement_registration r - and r.bureau_dept_name is not null and r.is_submit = 1 @@ -785,35 +674,13 @@ and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) - - - - - - - - + and DATE_FORMAT(r.enforcement_time,'%Y-%m-%d') >=#{beginTime} and DATE_FORMAT(r.enforcement_time,'%Y-%m-%d') #{endTime} - - - - - - - - - - - - - - - @@ -828,7 +695,6 @@ select r.bureau_dept_name, count(1) as num from enforcement_registration r - - + and r.bureau_dept_name is not null and r.is_submit = 1 and r.law_enforcement_id is not null @@ -897,35 +740,13 @@ and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) - - - - - - - - + and DATE_FORMAT(r.enforcement_time,'%Y-%m-%d') >=#{beginTime} and DATE_FORMAT(r.enforcement_time,'%Y-%m-%d') #{endTime} - - - - - - - - - - - - - - - ${params.dataScope} @@ -976,21 +797,6 @@ and DATE_FORMAT(r.enforcement_time,'%Y-%m-%d') #{endTime} - - - - - - - - - - - - - - - ${params.dataScope} @@ -1032,21 +838,7 @@ e.enterprise_address like concat('深圳市',substring_index(#{qy}, "区",1), '新区',#{jd},'%')) - - - - - - - - - - - - - - - + and DATE_FORMAT(r.enforcement_time,'%Y-%m-%d') >=#{beginTime} @@ -1089,21 +881,7 @@ and DATE_FORMAT(c.complaint_time,'%Y-%m-%d') #{endTime} - - - - - - - - - - - - - - - + ${params.dataScope} @@ -1152,11 +930,10 @@ and r.is_complaint is not null and r.check_category is not null 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.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) - and DATE_FORMAT(r.enforcement_time,'%Y-%m-%d') >= DATE_FORMAT(#{beginTime},'%Y-%m-%d') and DATE_FORMAT(#{endTime},'%Y-%m-%d') >= DATE_FORMAT(r.enforcement_time,'%Y-%m-%d') @@ -1231,11 +1008,9 @@ and r.enterprise_number is not null and r.law_enforcer is not null and r.bureau_dept_id is not null - and r.bureau_dept_id in (select sd.dept_id from sys_dept sd where sd.area_node = #{deptId} or sd.dept_id = #{deptId}) - and DATE_FORMAT(r.enforcement_time,'%Y-%m-%d') >= DATE_FORMAT(#{beginTime},'%Y-%m-%d') and DATE_FORMAT(#{endTime},'%Y-%m-%d') >= DATE_FORMAT(r.enforcement_time,'%Y-%m-%d') @@ -1648,13 +1423,10 @@ and (c.rid is not null or c.complaint_department_id is not null) and c.enforce_type is not null and c.enterprise_number is not null - - - + and c.complaint_department_id in (select sd.dept_id from sys_dept sd where find_in_set(#{deptId}, sd.ancestors) or sd.dept_id = #{deptId}) - and DATE_FORMAT(c.complaint_time,'%Y-%m-%d') >= DATE_FORMAT(#{beginTime},'%Y-%m-%d') and DATE_FORMAT(#{endTime},'%Y-%m-%d') >= DATE_FORMAT(c.complaint_time,'%Y-%m-%d')