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 0000000..e6b7206 Binary files /dev/null and b/src/main/resources/static/img/synthesisQuery/detail-icon.png differ diff --git a/src/main/resources/static/img/synthesisQuery/download-icon.png b/src/main/resources/static/img/synthesisQuery/download-icon.png new file mode 100644 index 0000000..31e06a5 Binary files /dev/null and b/src/main/resources/static/img/synthesisQuery/download-icon.png differ diff --git a/src/main/resources/static/img/synthesisQuery/water-download-icon.png b/src/main/resources/static/img/synthesisQuery/water-download-icon.png new file mode 100644 index 0000000..b895ecf Binary files /dev/null and b/src/main/resources/static/img/synthesisQuery/water-download-icon.png differ 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 @@
-