From 5ad4e2b2e881204102cd0a5e96da936db19f39c7 Mon Sep 17 00:00:00 2001 From: Administrator <1144154118@qq.com> Date: 星期五, 11 八月 2023 11:30:47 +0800 Subject: [PATCH] 删除 --- ard-work/src/main/resources/mapper/app/ArdAppPatrolplanMapper.xml | 8 +++++--- 1 files changed, 5 insertions(+), 3 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..05d1447 100644 --- a/ard-work/src/main/resources/mapper/app/ArdAppPatrolplanMapper.xml +++ b/ard-work/src/main/resources/mapper/app/ArdAppPatrolplanMapper.xml @@ -35,16 +35,18 @@ left join ard_app_patroluser as users on ard_app_patrolplan.id = users.patrolplan_id left join sys_user on ard_app_patrolplan.user_id = sys_user.user_id <where> - ard_app_patrolplan.user_id = #{userId} + ard_app_patrolplan.user_id = #{userId} and del_name is null and del_time is null <if test="cycle != null and cycle != ''"> and cycle = #{cycle}</if> <if test="planName != null and planName != ''"> and plan_name like '%'||#{planName}||'%'</if> <if test="patroBeginTime != null and patroBeginTime != ''"> and patro_begin_time >= #{patroBeginTime}</if> <if test="patroEndTime != null and patroEndTime != ''"> and patro_end_time <= #{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