From bd3916f68a3f8971bfe8c78b0b71e87fba643e11 Mon Sep 17 00:00:00 2001
From: Administrator <1144154118@qq.com>
Date: 星期四, 10 八月 2023 09:24:58 +0800
Subject: [PATCH] 巡检日历及查询优化

---
 ard-work/src/main/resources/mapper/app/ArdAppPatrolplanMapper.xml |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ard-work/src/main/resources/mapper/app/ArdAppPatrolplanMapper.xml b/ard-work/src/main/resources/mapper/app/ArdAppPatrolplanMapper.xml
index 7e82cdb..cfeb44f 100644
--- a/ard-work/src/main/resources/mapper/app/ArdAppPatrolplanMapper.xml
+++ b/ard-work/src/main/resources/mapper/app/ArdAppPatrolplanMapper.xml
@@ -41,10 +41,12 @@
             <if test="patroBeginTime != null  and patroBeginTime != ''"> and patro_begin_time &gt;= #{patroBeginTime}</if>
             <if test="patroEndTime != null  and patroEndTime != ''"> and patro_end_time &lt;= #{patroEndTime}</if>
             <if test="wellId != null  and wellId != ''">
-                and well.alarmpoints_id in (select ard_alarmpoints_well.id from ard_alarmpoints_well where well_id = #{wellId})
+<!--                and well.alarmpoints_id in (select ard_alarmpoints_well.id from ard_alarmpoints_well where well_id = #{wellId})-->
+                and well.alarmpoints_id = #{wellId}
             </if>
             <if test="pUser != null  and pUser != ''">
-                and users.app_user_id in (select sys_user.user_id from sys_user where nick_name = #{pUser})
+<!--                and users.app_user_id in (select sys_user.user_id from sys_user where nick_name = #{pUser})-->
+                and users.app_user_id = #{pUser}
             </if>
         </where>
             group by ard_app_patrolplan.id

--
Gitblit v1.9.3