From c9dfeacbf09c9fdfc9d6920384db4dfc0df323a2 Mon Sep 17 00:00:00 2001 From: limingyu Date: Mon, 22 Apr 2024 11:50:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E9=98=B2=E7=82=B9=E4=BD=8D=E7=BB=B4?= =?UTF-8?q?=E6=8A=A4=E6=96=B0=E5=A2=9E=E5=AD=97=E6=AE=B5=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E6=A0=87=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mybatis/datasource/firemanager/FireCheckListMapper.xml | 2 +- .../mybatis/datasource/firemanager/FirePonitMapper.xml | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mybatis/datasource/firemanager/FireCheckListMapper.xml b/src/main/resources/mybatis/datasource/firemanager/FireCheckListMapper.xml index f06ed085..eafe482d 100644 --- a/src/main/resources/mybatis/datasource/firemanager/FireCheckListMapper.xml +++ b/src/main/resources/mybatis/datasource/firemanager/FireCheckListMapper.xml @@ -228,7 +228,7 @@ fd.FIRE_DEVICE_TYPE_ID = sys_dictionaries.BIANMA WHERE fp.ISDELETE = 0 AND - fd.ISDELETE = 0 + fd.ISDELETE = 0 AND fr.ISDELETE = 0 and fp.USER_ID = #{USER_ID} diff --git a/src/main/resources/mybatis/datasource/firemanager/FirePonitMapper.xml b/src/main/resources/mybatis/datasource/firemanager/FirePonitMapper.xml index 93edb838..1f1c4e6b 100644 --- a/src/main/resources/mybatis/datasource/firemanager/FirePonitMapper.xml +++ b/src/main/resources/mybatis/datasource/firemanager/FirePonitMapper.xml @@ -144,7 +144,8 @@ IFNULL( t.DEVICE_COUNT, 0 ) DEVICE_COUNT, d.`NAME` AS DEPARTMENT_NAME, u.`NAME` AS USERNAME, - r.FIRE_REGION_NAME + r.FIRE_REGION_NAME, + if(p.LATITUDE is null or p.LONGITUDE is null, '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 @@ -165,6 +166,9 @@ AND p.DEPARTMENT_ID = #{pd.DEPARTMENT_ID} + + AND p.FIRE_REGION_ID = #{pd.FIRE_REGION_ID} + group by p.FIRE_POINT_ID ORDER BY p.OPERATTIME desc