diff --git a/src/main/resources/mappers/backstage/SynthesisQueryMapper.xml b/src/main/resources/mappers/backstage/SynthesisQueryMapper.xml index 7295e41..9f5b869 100644 --- a/src/main/resources/mappers/backstage/SynthesisQueryMapper.xml +++ b/src/main/resources/mappers/backstage/SynthesisQueryMapper.xml @@ -51,7 +51,12 @@ AND tpc.file_resource_id IS NOT NULL - AND tcq.title LIKE CONCAT('%',#{imgPath},'%') + + AND ( + SUBSTRING(sfr.source_type_name, LOCATE('-', sfr.source_type_name) + 1) = #{keyWord} OR + INSTR(tcq.title,#{keyWord}) > 0 + ) + @@ -60,7 +65,10 @@ - + AND( + SUBSTRING(sfr.source_type_name, LOCATE('-', sfr.source_type_name) + 1) = #{keyWord} OR + INSTR(tcq.title,#{keyWord}) > 0 + ) AND tcq.pro_id = #{proId} @@ -74,29 +82,38 @@ AND DATE_FORMAT(sfr.create_time, '%Y-%m-%d') BETWEEN #{startTime} AND #{endTime} - - AND INSTR(tcq.vio_place,#{vioPlace}) > 0 AND tcq.upload_type = '1' + + + AND INSTR(tcq.vio_place,#{vioPlace}) > 0 + + + AND INSTR(tcq.vio_desc,#{vioDesc}) > 0 + + + AND INSTR(tcq.rect_desc,#{rectDesc}) > 0 + + AND tcq.upload_type = '1' - - AND INSTR(tcq.vio_desc,#{vioDesc}) > 0 AND tcq.upload_type = '1' + + + AND INSTR(tcq.vio_place,#{checkPlace2}) > 0 + + + AND INSTR(tcq.vio_desc,#{checkDesc2}) > 0 + + + AND INSTR(tcq.rect_desc,#{rectDesc2}) > 0 + + AND tcq.upload_type = '2' - - AND INSTR(tcq.rect_desc,#{rectDesc}) > 0 AND tcq.upload_type = '1' - - - AND INSTR(tcq.vio_place,#{checkPlace2}) > 0 AND tcq.upload_type = '2' - - - AND INSTR(tcq.vio_desc,#{checkDesc2}) > 0 AND tcq.upload_type = '2' - - - AND INSTR(tcq.rect_desc,#{rectDesc2}) > 0 AND tcq.upload_type = '2' - - - AND INSTR(tcq.vio_desc,#{checkDesc3}) > 0 AND tcq.upload_type = '3' - - - AND INSTR(tcq.rect_desc,#{rectDesc3}) > 0 AND tcq.upload_type = '3' + + + AND INSTR(tcq.vio_desc,#{checkDesc3}) > 0 + + + AND INSTR(tcq.rect_desc,#{rectDesc3}) > 0 + + AND tcq.upload_type = '3' AND INSTR(tcq.vio_place,#{buildPlace}) > 0 AND tcq.upload_type = '4' diff --git a/src/main/resources/static/js/select.js b/src/main/resources/static/js/select.js index 3362005..57f75db 100644 --- a/src/main/resources/static/js/select.js +++ b/src/main/resources/static/js/select.js @@ -24,7 +24,7 @@ function getDictSelect(value) { let data = []; let url = dataUrl + "/sys/select/getDictSelect" let obj = { - 'value':value + 'value': value } let params = { encryptedData: encryptCBC(JSON.stringify(obj)) @@ -184,7 +184,7 @@ function setSelectValue2(list, selectName) { } // 设置下拉多选 -function setFormSelects(selName,list) { +function setFormSelects(selName, list) { let keys = []; $.each(list, function (index, item) { let temp = { @@ -200,7 +200,7 @@ function setFormSelects(selName,list) { } // 设置门禁-下拉许安多 -function setFormSelects2(selName,list) { +function setFormSelects2(selName, list) { let keys = []; $.each(list, function (index, item) { let temp = { @@ -215,66 +215,20 @@ function setFormSelects2(selName,list) { layui.form.render(); } -/** - * 获取单位下拉选 - */ -function getCustomNameSelected() { - let url = dataUrl + '/samples/allCustomName'; - ajaxRequest(url, "POST", null, true, function () { - }, function (result) { - if (result.code === 200) { - setSelectValue(result.data, 'customName'); - } else { - layer.alert(result.msg, {icon: 2}) - } - }, function (xhr) { - error(xhr) - }); +function setSelectValueName(list, selectName, placeholder) { + let html = ''; + $.each(list, function (index, item) { + html += ''; + }) + $('#' + selectName).empty().append(html); + layui.form.render(); } -/** - * 获取设备类型数据 - */ -function getToolsSelected() { - let url = dataUrl + '/samples/all'; - ajaxRequest(url, "POST", null, true, function () { - }, function (result) { - if (result.code === 200) { - setSelectValue(result.data, 'sampleTools'); - } else { - layer.alert(result.msg, {icon: 2}) - } - }, function (xhr) { - error(xhr) - }); -} - -/** - * 获取部门下拉选 - */ -function getDeptSelectedById(customId) { - let url = dataUrl + '/samples/getDeptSelectedById'; - let obj = { - customId:customId - } - let params = { - encryptedData: encryptCBC(JSON.stringify(obj)) - } - ajaxRequest(url, "POST", params, true, function () { - }, function (result) { - if (result.code === 200) { - setSelectValue(result.data, 'sampleDepartment'); - } else { - } - } - ) -} - -/**字典表下拉选*/ -function getDictsSelect(value) { +// 工程下拉选 +function getProsSelect() { let data = []; - let url = dataUrl + "/sys/select/getDicts" - let obj = {"code":value} + let url = dataUrl + "/sys/select/getProsSelect" + let obj = {} let params = { encryptedData: encryptCBC(JSON.stringify(obj)) } @@ -291,22 +245,45 @@ function getDictsSelect(value) { return data; } -/**字典表下拉选赋值*/ -function setDictSelectValue(list, selectName) { - let html = ''; - $.each(list, function (index, item) { - html += ''; - }) - $('#' + selectName).empty().append(html); - layui.form.render(); +function getMajorsSelect() { + let data = []; + let url = dataUrl + "/sys/select/getMajorsSelect" + let obj = {} + let params = { + encryptedData: encryptCBC(JSON.stringify(obj)) + } + ajaxRequest(url, "POST", params, false, function () { + }, function (result) { + if (result.status === 200) { + data = result.data; + } else if (result.status === 500) { + layer.alert(result.msg, {icon: 2}) + } + }, function (xhr) { + error(xhr) + }); + return data; } - -function setSelectValueName(list, selectName, placeholder) { - let html = ''; - $.each(list, function (index, item) { - html += ''; - }) - $('#' + selectName).empty().append(html); - layui.form.render(); +/**工序下拉选*/ +function getGxsSelect(major) { + let data = []; + let url = dataUrl + "/sys/select/getGxsSelect" + let obj = { + id: major + } + let params = { + encryptedData: encryptCBC(JSON.stringify(obj)) + } + ajaxRequest(url, "POST", params, false, function () { + }, function (result) { + if (result.status === 200) { + data = result.data; + } else if (result.status === 500) { + layer.alert(result.msg, {icon: 2}) + } + }, function (xhr) { + error(xhr) + }); + return data; } \ No newline at end of file diff --git a/src/main/resources/static/js/synthesisQuery/highSearchForm.js b/src/main/resources/static/js/synthesisQuery/highSearchForm.js index a087f60..4726038 100644 --- a/src/main/resources/static/js/synthesisQuery/highSearchForm.js +++ b/src/main/resources/static/js/synthesisQuery/highSearchForm.js @@ -40,4 +40,6 @@ function searchData() { /**重置数据*/ function resetData() { $('#formInfo2')[0].reset(); + let index = parent.layer.getFrameIndex(window.name); // 先得到当前 iframe层的索引 + window.parent.highSearchValue(JSON.stringify({})); } \ No newline at end of file diff --git a/src/main/resources/static/js/synthesisQuery/synthesisQuery.js b/src/main/resources/static/js/synthesisQuery/synthesisQuery.js index c74a71e..b199a3c 100644 --- a/src/main/resources/static/js/synthesisQuery/synthesisQuery.js +++ b/src/main/resources/static/js/synthesisQuery/synthesisQuery.js @@ -50,6 +50,7 @@ function dataFlow(queryParams) { /*切换查询类型*/ function changeType(type, that) { resetData(); + highSearchData = {}; queryType = type; $(that).removeClass("noCheckedElement"); if ($(that).hasClass("checkedElement") && type === 1) { @@ -191,13 +192,14 @@ function highSearch() { /**标题查询*/ function titleSearch() { + highSearchData = {}; resetData(); let queryParams = { pageNum: pageNum, pageSize: pageSize, queryType: queryType, searchType: 1, - uploadType: $('#uploadType').val() + keyWord: $('#keyWord').val() } searchData(queryParams); } @@ -205,6 +207,7 @@ function titleSearch() { /*图片类型查询*/ function queryByType(that, type) { + highSearchData = {}; resetData(); $(that).addClass('type-num-check'); let queryParams = { diff --git a/src/main/resources/static/pages/synthesisQuery/highSearchForm.html b/src/main/resources/static/pages/synthesisQuery/highSearchForm.html index 4b87fca..afc4eae 100644 --- a/src/main/resources/static/pages/synthesisQuery/highSearchForm.html +++ b/src/main/resources/static/pages/synthesisQuery/highSearchForm.html @@ -9,6 +9,7 @@ + diff --git a/src/main/resources/static/pages/synthesisQuery/synthesisQuery.html b/src/main/resources/static/pages/synthesisQuery/synthesisQuery.html index f77db89..65763a4 100644 --- a/src/main/resources/static/pages/synthesisQuery/synthesisQuery.html +++ b/src/main/resources/static/pages/synthesisQuery/synthesisQuery.html @@ -21,7 +21,7 @@
-
diff --git a/src/main/resources/static/pages/system/child/doorLockForm.html b/src/main/resources/static/pages/system/child/doorLockForm.html deleted file mode 100644 index 5cac399..0000000 --- a/src/main/resources/static/pages/system/child/doorLockForm.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - 门禁配置-新增/修改 - - -
- - -
- -
- -
-
-
- -
- -
-
- - - -
-
- - -
- - - \ No newline at end of file diff --git a/src/main/resources/static/pages/system/child/sysDoorConfigForm.html b/src/main/resources/static/pages/system/child/sysDoorConfigForm.html deleted file mode 100644 index 85b2f18..0000000 --- a/src/main/resources/static/pages/system/child/sysDoorConfigForm.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - - - - 门禁配置-新增/修改 - - -
-
- -
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
- -
- -
-
- - -
- - - \ No newline at end of file diff --git a/src/main/resources/static/pages/system/doorLockMge.html b/src/main/resources/static/pages/system/doorLockMge.html deleted file mode 100644 index 0f99822..0000000 --- a/src/main/resources/static/pages/system/doorLockMge.html +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - 门锁管理 - - -
- -
-
-
-
-
- - - - - \ No newline at end of file