From 7a5585e29b95d9dd3eea5cbc8cf4011a97b20410 Mon Sep 17 00:00:00 2001 From: WenG <450292408@qq.com> Date: Sun, 21 Mar 2021 14:19:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/dataMinute/dataMinute-mapper.xml | 2 +- .../mybatis/mapper/poll/poll-mapper.xml | 37 +++++++++++++++---- .../resources/templates/collector/list.html | 9 ----- .../resources/templates/enterprise/list.html | 9 ----- .../resources/templates/instrument/list.html | 9 ----- src/main/resources/templates/poll/list.html | 19 ++++++---- 6 files changed, 42 insertions(+), 43 deletions(-) diff --git a/src/main/resources/mybatis/mapper/dataMinute/dataMinute-mapper.xml b/src/main/resources/mybatis/mapper/dataMinute/dataMinute-mapper.xml index bbaf67a..d977b21 100644 --- a/src/main/resources/mybatis/mapper/dataMinute/dataMinute-mapper.xml +++ b/src/main/resources/mybatis/mapper/dataMinute/dataMinute-mapper.xml @@ -70,7 +70,7 @@ - INSERT INTO pollute_data_minute( + INSERT INTO pollute_data_minute ( data_id, collector_sn, enterprise_id, diff --git a/src/main/resources/mybatis/mapper/poll/poll-mapper.xml b/src/main/resources/mybatis/mapper/poll/poll-mapper.xml index 4fa5bf5..623e6ad 100644 --- a/src/main/resources/mybatis/mapper/poll/poll-mapper.xml +++ b/src/main/resources/mybatis/mapper/poll/poll-mapper.xml @@ -190,9 +190,16 @@ 1 = 1 AND ( - - t1.id LIKE CONCAT('%', #{keywords}, '%') - ) + t1.poll_no LIKE CONCAT('%', #{keywords}, '%') + OR + t1.poll_no_old LIKE CONCAT('%', #{keywords}, '%') + OR + t1.poll_name LIKE CONCAT('%', #{keywords}, '%') + ) + + + AND + poll_type = #{pollType} AND @@ -220,10 +227,17 @@ 1 = 1 AND ( - - t1.id LIKE CONCAT('%', #{keywords}, '%') + t1.poll_no LIKE CONCAT('%', #{keywords}, '%') + OR + t1.poll_no_old LIKE CONCAT('%', #{keywords}, '%') + OR + t1.poll_name LIKE CONCAT('%', #{keywords}, '%') ) + + AND + poll_type = #{pollType} + AND t1.poll_id IN @@ -250,9 +264,16 @@ 1 = 1 AND ( - - t1.id LIKE CONCAT('%', #{keywords}, '%') - ) + t1.poll_no LIKE CONCAT('%', #{keywords}, '%') + OR + t1.poll_no_old LIKE CONCAT('%', #{keywords}, '%') + OR + t1.poll_name LIKE CONCAT('%', #{keywords}, '%') + ) + + + AND + poll_type = #{pollType} AND diff --git a/src/main/resources/templates/collector/list.html b/src/main/resources/templates/collector/list.html index 5d0dee5..6ecca00 100644 --- a/src/main/resources/templates/collector/list.html +++ b/src/main/resources/templates/collector/list.html @@ -86,15 +86,6 @@ [ {type:'checkbox', fixed: 'left'}, {field:'rowNum', width:80, title: '序号', fixed: 'left', align:'center', templet: '{{d.LAY_INDEX}}'}, - {field: 'collectorId', width: 180, title: '', align:'center', - templet: function(row) { - var rowData = row[this.field]; - if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { - return '-'; - } - return rowData; - } - }, {field: 'collectorMn', width: 180, title: '设备编号', align:'center', templet: function(row) { var rowData = row[this.field]; diff --git a/src/main/resources/templates/enterprise/list.html b/src/main/resources/templates/enterprise/list.html index ae678ef..dba0b8d 100644 --- a/src/main/resources/templates/enterprise/list.html +++ b/src/main/resources/templates/enterprise/list.html @@ -86,15 +86,6 @@ [ {type:'checkbox', fixed: 'left'}, {field:'rowNum', width:80, title: '序号', fixed: 'left', align:'center', templet: '{{d.LAY_INDEX}}'}, - {field: 'enterpriseId', width: 180, title: '', align:'center', - templet: function(row) { - var rowData = row[this.field]; - if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { - return '-'; - } - return rowData; - } - }, {field: 'enterpriseName', width: 180, title: '名称', align:'center', templet: function(row) { var rowData = row[this.field]; diff --git a/src/main/resources/templates/instrument/list.html b/src/main/resources/templates/instrument/list.html index bfd4cfe..f877703 100644 --- a/src/main/resources/templates/instrument/list.html +++ b/src/main/resources/templates/instrument/list.html @@ -86,15 +86,6 @@ [ {type:'checkbox', fixed: 'left'}, {field:'rowNum', width:80, title: '序号', fixed: 'left', align:'center', templet: '{{d.LAY_INDEX}}'}, - {field: 'instrumentId', width: 180, title: '', align:'center', - templet: function(row) { - var rowData = row[this.field]; - if(typeof(rowData) === 'undefined' || rowData == null || rowData == '') { - return '-'; - } - return rowData; - } - }, {field: 'instrumentMn', width: 180, title: '设备编号', align:'center', templet: function(row) { var rowData = row[this.field]; diff --git a/src/main/resources/templates/poll/list.html b/src/main/resources/templates/poll/list.html index ce21357..f7b7535 100644 --- a/src/main/resources/templates/poll/list.html +++ b/src/main/resources/templates/poll/list.html @@ -9,6 +9,9 @@ +
@@ -16,15 +19,18 @@
-
+
- -
-
- +