From 3e09ea7d397d9f35d8f515526d808a1dc2338a21 Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Tue, 8 Apr 2025 16:00:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=8B=E7=BC=A9=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../entity/ProClassifyStatisticDetailVo.java | 2 +- .../entity/ProClassifyStatisticsVo.java | 2 +- .../backstage/SynthesisQueryMapper.xml | 101 +++++++++++++++++- .../css/synthesisQuery/synthesisQuery.css | 8 +- .../static/img/synthesisQuery/detail-icon.png | Bin 0 -> 544 bytes .../img/synthesisQuery/download-icon.png | Bin 0 -> 683 bytes .../synthesisQuery/water-download-icon.png | Bin 0 -> 550 bytes .../js/synthesisQuery/highSearchForm.js | 1 + .../synthesisQuery/proClassifyStatistics.js | 10 +- .../proClassifyStatisticsDetail.js | 31 +++--- .../resources/static/pages/home/home.html | 12 +++ .../pages/synthesisQuery/highSearchForm.html | 6 +- .../proClassifyStatisticsDetail.html | 22 ++-- .../pages/synthesisQuery/synthesisQuery.html | 4 +- 14 files changed, 154 insertions(+), 45 deletions(-) create mode 100644 src/main/resources/static/img/synthesisQuery/detail-icon.png create mode 100644 src/main/resources/static/img/synthesisQuery/download-icon.png create mode 100644 src/main/resources/static/img/synthesisQuery/water-download-icon.png create mode 100644 src/main/resources/static/pages/home/home.html diff --git a/src/main/java/com/bonus/imgTool/backstage/entity/ProClassifyStatisticDetailVo.java b/src/main/java/com/bonus/imgTool/backstage/entity/ProClassifyStatisticDetailVo.java index 9254acd..9950761 100644 --- a/src/main/java/com/bonus/imgTool/backstage/entity/ProClassifyStatisticDetailVo.java +++ b/src/main/java/com/bonus/imgTool/backstage/entity/ProClassifyStatisticDetailVo.java @@ -22,7 +22,7 @@ public class ProClassifyStatisticDetailVo { /** * 违章时间/检查时间/时间 */ - @JsonFormat(pattern = "yyyy-MM-dd") + @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8") private Date vioDate; /** diff --git a/src/main/java/com/bonus/imgTool/backstage/entity/ProClassifyStatisticsVo.java b/src/main/java/com/bonus/imgTool/backstage/entity/ProClassifyStatisticsVo.java index a30b970..2e685a8 100644 --- a/src/main/java/com/bonus/imgTool/backstage/entity/ProClassifyStatisticsVo.java +++ b/src/main/java/com/bonus/imgTool/backstage/entity/ProClassifyStatisticsVo.java @@ -26,7 +26,7 @@ public class ProClassifyStatisticsVo extends SynthesisNumVo{ private String proName; @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") - @Excel(name = "最后更新时间", width = 20.0, orderNum = "8",format = "yyyy-MM-dd HH:mm:ss") + @Excel(name = "最后更新时间", width = 20.0, orderNum = "8",format = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") private Date lastUpdateTime; } diff --git a/src/main/resources/mappers/backstage/SynthesisQueryMapper.xml b/src/main/resources/mappers/backstage/SynthesisQueryMapper.xml index 3a9f2d7..53b4b8c 100644 --- a/src/main/resources/mappers/backstage/SynthesisQueryMapper.xml +++ b/src/main/resources/mappers/backstage/SynthesisQueryMapper.xml @@ -69,6 +69,20 @@ 1 + + + insert into tb_download_task + + task_id, + failure_time, + file_path, + + + #{taskId}, + #{nowTime}, + #{filePath}, + + update tb_comprehensive_query set is_active ='0' where id = #{id} @@ -248,7 +262,7 @@ GROUP BY tcq.pro_id - + SELECT sfr.id AS photoId, IF(#{type} = '1',sfr.original_file_path,sfr.watermark_file_path) AS filePath, + sfr.upload_type AS uploadType, CASE sfr.upload_type WHEN '1' THEN '安全违章' WHEN '2' THEN '质量检查' WHEN '3' THEN '安全措施落实' - WHEN '4' THEN '协调照片' WHEN '5' THEN '重要事项及宣传类' ELSE '' END AS uploadTypeName + WHEN '4' THEN '协调照片' WHEN '5' THEN '重要事项及宣传类' ELSE '' END AS uploadTypeName, + A.dict_name AS sourceTypeName, + tcq.title FROM tb_comprehensive_query tcq LEFT JOIN sys_file_resource sfr ON tcq.id = sfr.source_id AND tcq.upload_type = sfr.upload_type AND sfr.is_active = '1' + LEFT JOIN ( + SELECT sd.dict_value,sd.dict_name + FROM sys_distinct sd + LEFT JOIN sys_distinct sd2 ON sd.p_id = sd2.id + WHERE sd2.dict_code = 'file_source_type' AND sd.del_flag = 0 + ) A ON A.dict_value = sfr.source_type WHERE tcq.pro_id = #{proId} AND tcq.is_active = '1' ORDER BY sfr.create_time DESC diff --git a/src/main/resources/static/css/synthesisQuery/synthesisQuery.css b/src/main/resources/static/css/synthesisQuery/synthesisQuery.css index d27a2fe..9d49b26 100644 --- a/src/main/resources/static/css/synthesisQuery/synthesisQuery.css +++ b/src/main/resources/static/css/synthesisQuery/synthesisQuery.css @@ -80,7 +80,7 @@ body { #batch-type-box { width: 100%; - height: 60px; + height: 40px; justify-content: end; } @@ -99,7 +99,7 @@ body { #img-box { width: 100%; - height: calc(100% - 200px); + height: calc(100% - 180px); } .layui-flow-more { @@ -232,13 +232,13 @@ body { } .info-data2 > p:nth-child(1) { - width: 5%; + width: 8%; color: #333; font-weight: bold; } .info-data2 > p:nth-child(2) { - width: 95%; + width: 92%; color: #333; } diff --git a/src/main/resources/static/img/synthesisQuery/detail-icon.png b/src/main/resources/static/img/synthesisQuery/detail-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..e6b7206b9363b3d05fa043ecfc220064d4a2963a GIT binary patch literal 544 zcmV+*0^j|KP)Px$+DSw~R9HvtSJ8FCFbq7gNMVC+fEl9SkT6K;AP@%V4wy-r5jsKDC&w7uF#%$~ z(!N*!@rdlR?sSp~4_@@(^AP}0TV7#;CwyUA9M}Y{uIMe^*8wnx6Pn@&`x_EAF$f<( z1HuY`2BC*E6WAP#jqI&!T7;PFFSX?k0He}t+GidZgsX<9V0`=oxGMvy;a9NH#Msq} zmUKmW6a{L>!dYH9TGfvNAlEj58B15xx_$nf2-S`c1t_Qc^dM=py}Ia7tUJ0hJ6+G!>)v&dw!9sz;kxg6P0hLu!o!5cLbyumYP-nl9T5fIEDd z&BzlNz}RDA+^@ABvb1h0%_!OA@&TN?=sp&hH6gKdX~lBgSxiShfE}~!t!uhC-Z@(* zEW{UzRe_iOR@XGUB($Mfqf`cZla3F@0k~--yK^G)(%a+L3Ea|z(iB7@lm0Ip2Q}|* z4IroezW&kh1Y=Ey2TNJ zx%aR+%7ksJMVwOp52!c;=CRLAn4RnYbem!GjKc^ i((ihlUcYwvFTMe=@{lmb{?UT~0000Px%Wl2OqR9HvtR#9#uF${g?94jq73E?Dk=s}m-xlPVM}xHk{r#Hdci12R0-75AQmnpuOAPqdoYVj4t^?p_d~t9@U9$GW zB?llnCxc7IadrqrGHuf$EJ&`oQ5ISVz%C3bO~JIAaw(k-D&K~;kvpo^#f?&LSNs6s zR}d&UBc@6TMhC(!(h*nCu~ND zr-fNv$!63n9a;_R+M;n>6QpEvKInX`<1d&4am9OS*=TwCO8{CN)Xw||@BurWgIJI6 RNkaet002ovPDHLkV1haXA-w0@?kEP)Px$;7LS5R9HvFm)m&)ArOVn*hpd}!Ai_(Au)yMu9bvNVkeUi7Lcp38%%id1(}~= z&Y4-lKQH>{_^1Mikzdz9%7Jbz|H}f1kw3tA2e2x*2`u$5VR!@+0O;E?MgXFPzIhL0 zkVl$w`$K>We{~OTqY}2cOgI3O_EYn%mTn}Rt2;nJ-+u=H zxc9eLHFcn#AYI)vFk7wij;k^muLzZ+hMM2t#qR4_g#KAhhBBk~lEjy&K&KnPzS5`y zW!P?7YDldB@u8|)mTX(f1MQMpC=_fPK&E&e^bQLULNX?KB$dHn)d31xSEqP#yBRl> zVq~G*E&*H#kaar$3N~QkhVxK!f2LIcnbfy7tS%W?A}41=XSNpn7TK`` oy7!*yw_)#q#a{62K&A740JKgeFgA4j0000007*qoM6N<$f{r`(n*aa+ literal 0 HcmV?d00001 diff --git a/src/main/resources/static/js/synthesisQuery/highSearchForm.js b/src/main/resources/static/js/synthesisQuery/highSearchForm.js index 1ad3272..458abd5 100644 --- a/src/main/resources/static/js/synthesisQuery/highSearchForm.js +++ b/src/main/resources/static/js/synthesisQuery/highSearchForm.js @@ -5,6 +5,7 @@ function setParams(obj) { let type = highSearchData.type; if(type){ $('#pro-item').remove(); + $('.photoType').remove(); } layui.use(["form", 'laydate', 'layer'], function () { form = layui.form; diff --git a/src/main/resources/static/js/synthesisQuery/proClassifyStatistics.js b/src/main/resources/static/js/synthesisQuery/proClassifyStatistics.js index a49826f..2d5c4c1 100644 --- a/src/main/resources/static/js/synthesisQuery/proClassifyStatistics.js +++ b/src/main/resources/static/js/synthesisQuery/proClassifyStatistics.js @@ -67,7 +67,7 @@ function initTable(dataList, limit, page) { return (page - 1) * limit + d.LAY_NUM; } }, - {field: "proName", title: "项目名称", width: "21%", unresize: true, align: "center"}, + {field: "proName", title: "项目名称", width: "19%", unresize: true, align: "center"}, { field: "totalNum", title: "总照片数量", width: "8%", unresize: true, align: "center", templet: function (d) { @@ -108,12 +108,12 @@ function initTable(dataList, limit, page) { field: "lastUpdateTime", title: "最后更新时间", width: "14%", align: "center", templet: 'center', }, { - title: "操作", unresize: true, width: "8%", align: "center", + title: "操作", unresize: true, width: "10%", align: "center", templet: function (d) { let html = ''; - let view = "" - let originalDownload = "" - let waterDownload = ""; + let view = "" + let originalDownload = "" + let waterDownload = ""; html = view + originalDownload + waterDownload; return html; } diff --git a/src/main/resources/static/js/synthesisQuery/proClassifyStatisticsDetail.js b/src/main/resources/static/js/synthesisQuery/proClassifyStatisticsDetail.js index 2b99a9c..41379eb 100644 --- a/src/main/resources/static/js/synthesisQuery/proClassifyStatisticsDetail.js +++ b/src/main/resources/static/js/synthesisQuery/proClassifyStatisticsDetail.js @@ -181,6 +181,7 @@ function changeType(that, type) { queryParams.pageSize = pageSize2; } resetData(); + highSearchData = {}; searchData(queryParams); } @@ -219,7 +220,7 @@ function initListData(list) { setRectData(item); } else if (item.uploadType === '2') { // 质量检测 html += "
" + - "

检查地点

" + + "

检查地点:

" + "

" + item.vioPlace + "

" + "
" + "
" + @@ -232,7 +233,7 @@ function initListData(list) { setRectData(item); } else if (item.uploadType === '3') { // 安全措施落实 html += "
" + - "

检查地点

" + + "

检查地点:

" + "

" + item.vioPlace + "

" + "
" + "
" + @@ -244,7 +245,7 @@ function initListData(list) { "
"; } else if (item.uploadType === '4') { // 协调照片 html += "
" + - "

建设前描述

" + + "

建设前描述:

" + "

" + item.buildBeforeDesc + "

" + "
" + "
" + @@ -267,7 +268,7 @@ function initListData(list) { } else if (item.uploadType === '5') { // 重要事项及宣传类 html += "
" + - "

标题

" + + "

标题:

" + "

" + item.title + "

" + "
" + "
" + @@ -385,19 +386,17 @@ function titleSearch() { /*图片类型查询*/ function queryByType(that, type) { resetData(); - if (queryType === 2) { - highSearchData = {}; - $(that).addClass('type-num-check'); - let queryParams = { - pageNum: pageNum, - pageSize: pageSize, - queryType: queryType, - searchType: 2, - uploadType: type, - id: objParams.proId - } - searchData(queryParams); + highSearchData = {}; + $(that).addClass('type-num-check'); + let queryParams = { + pageNum: pageNum, + pageSize: pageSize, + queryType: queryType, + searchType: 2, + uploadType: type, + id: objParams.proId } + searchData(queryParams); } /**高级筛选数据*/ diff --git a/src/main/resources/static/pages/home/home.html b/src/main/resources/static/pages/home/home.html new file mode 100644 index 0000000..cfd726a --- /dev/null +++ b/src/main/resources/static/pages/home/home.html @@ -0,0 +1,12 @@ + + + + + 首页 + + + + + + + diff --git a/src/main/resources/static/pages/synthesisQuery/highSearchForm.html b/src/main/resources/static/pages/synthesisQuery/highSearchForm.html index 1efd63e..19604c1 100644 --- a/src/main/resources/static/pages/synthesisQuery/highSearchForm.html +++ b/src/main/resources/static/pages/synthesisQuery/highSearchForm.html @@ -64,7 +64,7 @@ 安全违章照片
-
+
@@ -96,7 +96,7 @@ 质量检查照片
-
+
@@ -146,7 +146,7 @@ 协调照片
-
+
diff --git a/src/main/resources/static/pages/synthesisQuery/proClassifyStatisticsDetail.html b/src/main/resources/static/pages/synthesisQuery/proClassifyStatisticsDetail.html index aee14a8..f18e8dd 100644 --- a/src/main/resources/static/pages/synthesisQuery/proClassifyStatisticsDetail.html +++ b/src/main/resources/static/pages/synthesisQuery/proClassifyStatisticsDetail.html @@ -17,26 +17,26 @@
-