From 4342e164db5d87890817fd43965d033691a52d8e Mon Sep 17 00:00:00 2001
From: zouyx <1798599149@qq.com>
Date: Fri, 15 Nov 2024 15:59:40 +0800
Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E5=AF=BC=E5=87=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../code/complaintStatic/complaintStatic.html | 111 +++++---------
.../code/registration/staticRegistration.html | 87 +++--------
.../code/statistical/staticProgram.html | 24 +++
.../statisticsEnterprise.html | 2 +-
.../statisticsWarning/statisticsWarning.html | 25 +++-
.../controller/ComplaintStaticController.java | 118 ++++++++-------
...nforcementInspectionProgramController.java | 42 +++++-
.../EnforcementRegistrationController.java | 59 +++++++-
.../StatisticsEnterpriseController.java | 23 ++-
.../StatisticsWarningController.java | 45 +++++-
.../mapper/EnterpriseInformationMapper.java | 3 +
.../service/ComplaintStatisticsService.java | 6 +
.../service/StatisticsEnterpriseService.java | 5 +
.../service/impl/ComplaintStatisticsImpl.java | 89 +++++++----
.../impl/EnforcementCheckStatisticsImpl.java | 2 +-
.../impl/StatisticsEnterpriseServiceImpl.java | 141 ++++++++++++++++++
.../mapper/EnterpriseInformationMapper.xml | 16 ++
17 files changed, 559 insertions(+), 239 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 95c8acbd..4c549c0e 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
@@ -95,7 +95,7 @@
搜索
重置
- 导出
+ 导出
@@ -617,81 +617,50 @@
$('#bootstrap-table').hide();
}
}
- /*function complaintDownload1(){
- let table=document.getElementById('bootstrap-table1');
- let html=table.outerHTML;
- let downloadLink=document.createElement("a");
- document.body.append(downloadLink);
- downloadLink.href='data:application/vnd.ms-excel,'+ encodeURIComponent(html);
- downloadLink.download='执法投诉统计.xls';
- downloadLink.click();
- }*/
- function complaintDownload(){
- var currentId=$('form').eq(1).attr('id')
+ function downloadC1(){
+ var currentId=$('form').eq(0).attr('id');
var params = $.common.formToJSON(currentId);
$.ajax({
- url:ctx+"/enforcementCheckStatistics/queryAllList/2024-11-14/2024-11-14",
- type:'GET',
- success: function (response) {
+ type: "POST",
+ data: JSON.stringify(params),
+ contentType: 'application/json',
+ //设置响应类型
+ xhrFields: {responseType: "blob"},
+ url: prefix+"/export1",
+ success: function (result) {
+ const link = document.createElement('a');
+ let blob = new Blob([result], {type: 'application/vnd.ms-excel'});
+ link.style.display = 'none';
+ link.href = URL.createObjectURL(blob);
+ link.setAttribute('download', "执法投诉统计.xls");
+ document.body.appendChild(link);
+ link.click();
+ document.body.removeChild(link)
+ }
+ })
+ }
+ function downloadC2(){
+ var currentId=$('form').eq(1).attr('id');
+ var params = $.common.formToJSON(currentId);
+ $.ajax({
+ type: "POST",
+ data: JSON.stringify(params),
+ contentType: 'application/json',
+ //设置响应类型
+ xhrFields: {responseType: "blob"},
+ url: prefix+"/export2",
+ success: function (result) {
+ const link = document.createElement('a');
+ let blob = new Blob([result], {type: 'application/vnd.ms-excel'});
+ link.style.display = 'none';
+ link.href = URL.createObjectURL(blob);
+ link.setAttribute('download', "投诉类型统计.xls");
+ document.body.appendChild(link);
+ link.click();
+ document.body.removeChild(link)
}
})
}
-
- /*******echarts:投诉类型/占比*********/
-
- /*const ecsh = echarts.init(document.getElementById("echartComplaint"));
- const optionsh = {
- tooltip: {
- trigger: 'item',
- formatter: '{b}: {c} ({d}%)'
- },
- /!*legend: {
- x : 'left',
- y : 'center',
- itemGap: 20,
- orient: 'vercital'
- },*!/
- color: ['#1f74f1', '#79e24a', '#41d5d3', '#f59036', '#fed100', '#ababac'],
- series: [{
- top: '5%',
- left: '20%',
- type: 'pie',
- name: '名称',
- radius: ['20%', '28%'],
- center: ['50%', '30%'],
- label: {
- formatter: '{b}: {c} ({d}%)',
- borderWidth: 1,
- borderRadius: 4,
- color: '#4F4F4F',
- fontFamily: 'PingFangSC-Regular',
- fontSize: '14',
- rich: {
- a: {
- color: '#4F4F4F',
- lineHeight: 18,
- align: 'center'
- }
- }
- },
- data: [
- {value: 18, name: '违法执法'},
- {value: 28, name: '违规执法'},
- {value: 22, name: '执法不文明'},
- {value: 12, name: '选择性执法'},
- {value: 10, name: '其他'},
- {value: 10, name: '入企不扫码'},
- ],
- }]
- };
- ecsh.clear();
- ecsh.setOption(optionsh);
-
- // 使用刚指定的配置项和数据显示图表。
- myChart.setOption(option);
- window.addEventListener("resize",function(){
- myChart.resize();
- });*/