From 29d411f523a06a5d609e8772a55939fa654722c8 Mon Sep 17 00:00:00 2001
From: zhangnaisong <2434969829@qq.com>
Date: 星期四, 10 八月 2023 11:03:08 +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