From b91fe23733f76afc86efc201a7273c812dd86abb Mon Sep 17 00:00:00 2001 From: limingyu Date: Thu, 9 May 2024 08:36:02 +0800 Subject: [PATCH 1/3] =?UTF-8?q?15164=20=E5=A2=9E=E5=8A=A0=E4=B8=AA?= =?UTF-8?q?=E9=83=A8=E9=97=A8=E4=B8=8B=E6=8B=89=E6=A1=86=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=20=E8=A6=81=E4=B8=8D=E5=A4=AA=E5=A4=9A=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mybatis/datasource/firemanager/FireDeviceMapper.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/resources/mybatis/datasource/firemanager/FireDeviceMapper.xml b/src/main/resources/mybatis/datasource/firemanager/FireDeviceMapper.xml index f5abc175..5db2666c 100644 --- a/src/main/resources/mybatis/datasource/firemanager/FireDeviceMapper.xml +++ b/src/main/resources/mybatis/datasource/firemanager/FireDeviceMapper.xml @@ -146,6 +146,9 @@ and fp.FIRE_POINT_NAME like concat('%',#{pd.FIRE_POINT_NAME},'%') + + and d.DEPARTMENT_ID = #{pd.DEPARTMENT_ID} + ORDER BY fr.FIRE_REGION_ID,fr.CREATTIME,fp.FIRE_POINT_ID,fp.CREATTIME,fd.FIRE_DEVICE_TYPE_ID,fd.CREATTIME, fd.OPERATTIME DESC From 29f4e7df5e2efc0524aa3657a9a633a68a87d259 Mon Sep 17 00:00:00 2001 From: limingyu Date: Thu, 9 May 2024 14:44:23 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E7=AB=AF=E5=8A=A8?= =?UTF-8?q?=E7=81=AB=E4=BD=9C=E4=B8=9A=E5=88=A0=E9=99=A4=E5=85=A8=E9=83=A8?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=9A=84bug=EF=BC=8C=E6=B6=88=E9=98=B2?= =?UTF-8?q?=E7=82=B9=E4=BD=8D=E7=BB=B4=E6=8A=A4=E6=98=AF=E5=90=A6=E6=A0=87?= =?UTF-8?q?=E7=82=B9=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mybatis/datasource/firemanager/FirePonitMapper.xml | 4 ++-- .../datasource/highriskwork/BusHotworkCfdExamineMapper.xml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mybatis/datasource/firemanager/FirePonitMapper.xml b/src/main/resources/mybatis/datasource/firemanager/FirePonitMapper.xml index ef01c948..7ec95e23 100644 --- a/src/main/resources/mybatis/datasource/firemanager/FirePonitMapper.xml +++ b/src/main/resources/mybatis/datasource/firemanager/FirePonitMapper.xml @@ -145,7 +145,7 @@ d.`NAME` AS DEPARTMENT_NAME, u.`NAME` AS USERNAME, r.FIRE_REGION_NAME, - if(p.LATITUDE is null or p.LONGITUDE is null, '1', '0') AS ISPUNCTUATION + if(p.LATITUDE is null or p.LONGITUDE is null or p.LATITUDE = '' or p.LONGITUDE = '', '1', '0') AS ISPUNCTUATION FROM bus_fire_point AS p LEFT JOIN bus_fire_qualified_photos fqp ON p.QUALIFIED_PHOTOS_ID = fqp.QUALIFIED_PHOTOS_ID @@ -170,7 +170,7 @@ AND p.FIRE_REGION_ID = #{pd.FIRE_REGION_ID} - AND if(p.LATITUDE is null or p.LONGITUDE is null, '1', '0') = #{pd.IS_PUNCTUATION} + AND if(p.LATITUDE is null or p.LONGITUDE is null or p.LATITUDE = '' or p.LONGITUDE = '', '1', '0') = #{pd.IS_PUNCTUATION} group by p.FIRE_POINT_ID ORDER BY diff --git a/src/main/resources/mybatis/datasource/highriskwork/BusHotworkCfdExamineMapper.xml b/src/main/resources/mybatis/datasource/highriskwork/BusHotworkCfdExamineMapper.xml index de8b0c81..b92b0544 100644 --- a/src/main/resources/mybatis/datasource/highriskwork/BusHotworkCfdExamineMapper.xml +++ b/src/main/resources/mybatis/datasource/highriskwork/BusHotworkCfdExamineMapper.xml @@ -132,6 +132,7 @@ update - bus_confinedspace f + gf_confinedspace f set f.SPECIAL_WORK = REPLACE(f.SPECIAL_WORK,#{CHECK_NO},CONCAT(#{CHECK_NO},'(已作废)')) WHERE f.ISDELETE = '0' @@ -393,7 +393,7 @@ update - bus_blindboard f + gf_blindboard f set f.SPECIAL_WORK = REPLACE(f.SPECIAL_WORK,#{CHECK_NO},CONCAT(#{CHECK_NO},'(已作废)')) WHERE f.ISDELETE = '0' @@ -403,7 +403,7 @@ update - bus_electricity f + gf_electricity f set f.SPECIAL_WORK = REPLACE(f.SPECIAL_WORK,#{CHECK_NO},CONCAT(#{CHECK_NO},'(已作废)')) WHERE f.ISDELETE = '0' @@ -413,7 +413,7 @@ update - bus_hoisting f + gf_hoisting f set f.SPECIAL_WORK = REPLACE(f.SPECIAL_WORK,#{CHECK_NO},CONCAT(#{CHECK_NO},'(已作废)')) WHERE f.ISDELETE = '0' @@ -423,7 +423,7 @@ update - bus_breakground f + gf_breakground f set f.SPECIAL_WORK = REPLACE(f.SPECIAL_WORK,#{CHECK_NO},CONCAT(#{CHECK_NO},'(已作废)')) WHERE f.ISDELETE = '0' @@ -433,7 +433,7 @@ update - bus_cutroad f + gf_cutroad f set f.SPECIAL_WORK = REPLACE(f.SPECIAL_WORK,#{CHECK_NO},CONCAT(#{CHECK_NO},'(已作废)')) WHERE f.ISDELETE = '0' @@ -443,7 +443,7 @@ update - bus_highwork f + gf_highwork f set f.SPECIAL_WORK = REPLACE(f.SPECIAL_WORK,#{CHECK_NO},CONCAT(#{CHECK_NO},'(已作废)')) WHERE f.ISDELETE = '0'