From 12511b1762e0da09ee0bef374e1c53ec541e233e Mon Sep 17 00:00:00 2001 From: zouyx <1798599149@qq.com> Date: Tue, 19 Nov 2024 16:15:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=95=E8=AF=89=E5=AD=97=E6=AE=B5=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../code/complaintStatic/complaintStatic.html | 99 +++++-------------- .../code/registration/registration.html | 2 +- .../controller/ComplaintStaticController.java | 4 +- .../service/impl/ComplaintStatisticsImpl.java | 4 +- .../mapper/ComplaintStatisticsMapper.xml | 10 +- 5 files changed, 35 insertions(+), 84 deletions(-) diff --git a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/complaintStatic/complaintStatic.html b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/complaintStatic/complaintStatic.html index 211943be..6b3138af 100644 --- a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/complaintStatic/complaintStatic.html +++ b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/complaintStatic/complaintStatic.html @@ -94,7 +94,7 @@
  •  搜索 -  重置 +  重置 导出
  • @@ -157,8 +157,8 @@
  • -  搜索 -  重置 +  搜索 +  重置 导出
  • @@ -209,9 +209,8 @@ $("#quarter2").hide(); $("#month2").hide(); $('#detail').hide(); - $('#closeButton').hide(); rTable1(); - rTable("formId",2) + rTable2(); } $(function() { var options1 = { @@ -319,7 +318,7 @@ title : '被投诉对象' }, { - field : 'complaintType', + field : 'enforceType', title : '投诉类型', formatter:function (value,row,index) { for(let i=0;i deptMap=new HashMap<>(); if(searchType.getName()!=null&&!"".equals(searchType.getName())){//搜索条件内有投诉对象时 @@ -107,7 +107,7 @@ public class ComplaintStaticController extends BaseController { public TableDataInfo list(SearchType searchType) { ComplaintStatistics complaintStatistics=dateMake(searchType); if(searchType.getcType()!=null&&!"".equals(searchType.getcType())) { - complaintStatistics.setComplaintType(Integer.parseInt(searchType.getcType())); + complaintStatistics.setEnforceType(Integer.parseInt(searchType.getcType())); } if(searchType.getName()!=null&&!"".equals(searchType.getName())){//搜索条件内有投诉对象时 complaintStatistics.setComplaintDepartmentId(searchType.getName()); diff --git a/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/ComplaintStatisticsImpl.java b/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/ComplaintStatisticsImpl.java index bbd83d05..82867f59 100644 --- a/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/ComplaintStatisticsImpl.java +++ b/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/ComplaintStatisticsImpl.java @@ -132,7 +132,7 @@ public class ComplaintStatisticsImpl implements ComplaintStatisticsService { @Override public List type(List complaintStatisticsList){ int number=complaintStatisticsList.size(); - Map map=complaintStatisticsList.stream().collect(Collectors.groupingBy(item->item.getComplaintType()==null?100:item.getComplaintType(),Collectors.counting())); + Map map=complaintStatisticsList.stream().collect(Collectors.groupingBy(item->item.getEnforceType()==null?100:item.getEnforceType(),Collectors.counting())); Map dictDataMap=dictDataMapper.selectDictDataByType("caseType").stream().collect(Collectors.toMap(DictData::getDictValue,DictData::getDictLabel)); List list=new ArrayList<>(); for(int i:map.keySet()){ @@ -157,7 +157,7 @@ public class ComplaintStatisticsImpl implements ComplaintStatisticsService { @Override public List list1(SearchType searchType,ComplaintStatistics complaintStatistics){ if(searchType.getcType()!=null&&!"".equals(searchType.getcType())) { - complaintStatistics.setComplaintType(Integer.parseInt(searchType.getcType())); + complaintStatistics.setEnforceType(Integer.parseInt(searchType.getcType())); } Map deptMap=new HashMap<>(); if(searchType.getName()!=null&&!"".equals(searchType.getName())){//搜索条件内有投诉对象时 diff --git a/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/ComplaintStatisticsMapper.xml b/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/ComplaintStatisticsMapper.xml index 65b3974b..a2e0c4d0 100644 --- a/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/ComplaintStatisticsMapper.xml +++ b/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/ComplaintStatisticsMapper.xml @@ -28,6 +28,7 @@ and complaint_department_id is not null and complaint_department is not null + and enforce_type is not null and complaint_department_id in @@ -36,6 +37,7 @@ and complaint_department_id =#{complaintDepartmentId} and rid=#{rid} + and enforce_type=#{enforceType} and complaint_type=#{complaintType} and DATE_FORMAT(complaint_time,'%Y-%m-%d') >= STR_TO_DATE(#{beginTime},'%Y-%m-%d') @@ -50,12 +52,14 @@ and complaint_department_id is not null and complaint_department is not null + and enforce_type is not null and complaint_department_id in #{complaintDepartmentIdList} + and enforce_type=#{enforceType} and complaint_type=#{complaintType} and DATE_FORMAT(complaint_time,'%Y-%m-%d') >= STR_TO_DATE(#{beginTime},'%Y-%m-%d') @@ -68,11 +72,13 @@