From 790569e7625b7677c1303874a5e4783f597eec06 Mon Sep 17 00:00:00 2001 From: zouyx <1798599149@qq.com> Date: Wed, 6 Nov 2024 10:53:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../code/complaintStatic/complaintB.html | 2 +- .../code/registration/registration.html | 91 ++++++++++++++++++- .../controller/ComplaintStaticController.java | 12 ++- .../impl/StatisticalPaneServiceImpl.java | 18 +++- .../mapper/ComplaintStatisticsMapper.xml | 1 + 5 files changed, 114 insertions(+), 10 deletions(-) diff --git a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/complaintStatic/complaintB.html b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/complaintStatic/complaintB.html index 160095a2..32a53953 100644 --- a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/complaintStatic/complaintB.html +++ b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/complaintStatic/complaintB.html @@ -3,7 +3,7 @@
  • -

    +

  • diff --git a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/registration/registration.html b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/registration/registration.html index 72672e81..65200f70 100644 --- a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/registration/registration.html +++ b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/registration/registration.html @@ -148,9 +148,14 @@ -
    +
    +
    + × +
    +
    +
    @@ -219,7 +224,9 @@ var detailFlag = [[${@permission.hasPermi('code:registration:datail')}]]; var checkCategory=[[${@dict.getType('check_category')}]]; var reson=[[${@dict.getType('no-scan-reason')}]]; + var caseType=[]; var prefix = ctx + "code/registration"; + var prefixC= ctx+"code/complaintStatic"; var quarterBoolean=/*[[${quarterBoolean}]]*/{}; var monthBoolean=/*[[${monthBoolean}]]*/{}; var unite=/*[[${unite}]]*/{}; @@ -250,6 +257,17 @@ echarts2(); echarts3(); echarts4(); + $('#detail').hide(); + $.ajax({ + url:"/system/dict/data"+'/queryDict', + type:'GET', + data:{ + dictType:"caseType", + }, + success: function (response) { + caseType.push(response); + } + }) }; $(function() { var options = { @@ -353,7 +371,8 @@ if(value == 0){ return "否"; }else{ - return "是"; + /*return "是";*/ + return ''+'是'+''; } } }, @@ -558,7 +577,57 @@ } }) } - + $(function() { + var options2 = { + modalName: "执法记录统计", + showHeader: true, + showFooter: true, + showColumns: false, + showRefresh: false, + showToggle: false, + pagination: true, + pageSize: 10, + pageList: [10, 25, 50], + //quarterBoolean:quarterBoolean, + columns: [ + { + field: 'complaintDepartment', + title: '被投诉对象' + }, + { + field: 'enterpriseName', + title: '企业名称' + }, + { + field: 'complaintType', + title: '投诉类型', + formatter:function (value,row,index) { + debugger + for(i=0;i \ No newline at end of file diff --git a/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/controller/ComplaintStaticController.java b/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/controller/ComplaintStaticController.java index 6381780f..515e639b 100644 --- a/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/controller/ComplaintStaticController.java +++ b/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/controller/ComplaintStaticController.java @@ -65,8 +65,7 @@ public class ComplaintStaticController extends BaseController { @RequiresPermissions("code:complaintStatic:list") @GetMapping("/searchType1") public String searchType1(SearchType searchType,Model model){ - LocalDate localDate=LocalDate.now(); - model.addAttribute("year",localDate.getYear()); + model.addAttribute("year",searchType.getYear()); ComplaintStatistics complaintStatistics=dateMake(searchType); if(searchType.getCType()!=null&&!"".equals(searchType.getCType())) { complaintStatistics.setComplaintType(Integer.parseInt(searchType.getCType())); @@ -201,6 +200,15 @@ public class ComplaintStaticController extends BaseController { } return complaintStatistics; } + @GetMapping("/complaintByRid") + @ResponseBody + public TableDataInfo complaintByRid(String rid){ + startPage(); + ComplaintStatistics complaintStatistics=new ComplaintStatistics(); + complaintStatistics.setRid(rid); + List list=complaintStatisticsService.selectComplaintStatisticsList(complaintStatistics); + return getDataTable(list); + } public List yearMake(){ int current=LocalDate.now().getYear(); List yearList=new ArrayList<>(); diff --git a/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/StatisticalPaneServiceImpl.java b/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/StatisticalPaneServiceImpl.java index 5caaf64e..468e187b 100644 --- a/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/StatisticalPaneServiceImpl.java +++ b/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/StatisticalPaneServiceImpl.java @@ -137,8 +137,13 @@ public class StatisticalPaneServiceImpl implements StatisticalPaneService { List qxNow = enforcementRegistrationService.selectEnforcementRegistrationList1(enforcementRegistrationNow); List qxLast = enforcementRegistrationService.selectEnforcementRegistrationList1(enforcementRegistrationLast); p3.setName("本单位检查数量"); - p3.setTotal(qxNow.size()); - p3.setHuan(qxNow.size()-qxLast.size()); + if(deptId==null){ + p3.setTotal(0); + p3.setHuan(0); + }else { + p3.setTotal(qxNow.size()); + p3.setHuan(qxNow.size() - qxLast.size()); + } StatisticsIndicatorPart p=new StatisticsIndicatorPart(); List statisticsIndicatorPartList=new ArrayList<>(); p.setName("执法检查"); @@ -182,8 +187,13 @@ public class StatisticalPaneServiceImpl implements StatisticalPaneService { List qxNow=iLawEnforcementWarningListService.selectLawEnforcementWarningListList2(warningStatisticsNow); List qxLast=iLawEnforcementWarningListService.selectLawEnforcementWarningListList2(warningStatisticsLast); p3.setName("本单位发布预警数量"); - p3.setTotal(qxNow.size()); - p3.setHuan(qxNow.size()-qxLast.size()); + if(deptId==null){ + p3.setTotal(0); + p3.setHuan(0); + }else { + p3.setTotal(qxNow.size()); + p3.setHuan(qxNow.size() - qxLast.size()); + } StatisticsIndicatorPart p=new StatisticsIndicatorPart(); List statisticsIndicatorPartList=new ArrayList<>(); p.setName("执法预警"); diff --git a/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/ComplaintStatisticsMapper.xml b/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/ComplaintStatisticsMapper.xml index 9512f3de..fd1f892f 100644 --- a/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/ComplaintStatisticsMapper.xml +++ b/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/ComplaintStatisticsMapper.xml @@ -34,6 +34,7 @@ #{complaintDepartmentIdList} + and rid=#{rid} and complaint_type=#{complaintType} and DATE_FORMAT(complaint_time,'%Y-%m-%d') >= STR_TO_DATE(#{beginTime},'%Y-%m-%d')