From 5011c035b9902637b1cb4d08112e00239ff99381 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Mon, 23 May 2022 12:05:36 +0800
Subject: [PATCH] 合并master

---
 zq-erp/src/main/resources/mybatis/mapper/hive/SysProjServicesDao.xml |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/zq-erp/src/main/resources/mybatis/mapper/hive/SysProjServicesDao.xml b/zq-erp/src/main/resources/mybatis/mapper/hive/SysProjServicesDao.xml
index e37c0d0..d1c42c5 100644
--- a/zq-erp/src/main/resources/mybatis/mapper/hive/SysProjServicesDao.xml
+++ b/zq-erp/src/main/resources/mybatis/mapper/hive/SysProjServicesDao.xml
@@ -311,7 +311,7 @@
 		FROM sys_proj_services a
 		LEFT JOIN sys_vip_info b on b.ID=a.VIP_ID
 		left join sys_beautician_state c on a.id=c.SERVICES_ID
-		WHERE 1 = 1
+		WHERE 1 = 1 and (b.IS_DELETE is null or b.IS_DELETE = '')
 		<if test="record!=null">
 			<if test="record.queryKey != null and record.queryKey != ''">
 				and (instr(c.vip_name, #{record.queryKey}) or instr(c.phone, #{record.queryKey}) or instr(a.order_no, #{record.queryKey}))
@@ -381,7 +381,7 @@
 		FROM sys_proj_services a
 		LEFT JOIN sys_vip_info b on b.ID=a.VIP_ID
 		left join sys_beautician_state c on a.id=c.SERVICES_ID
-		WHERE 1 = 1
+		WHERE 1 = 1 and (b.IS_DELETE is null or b.IS_DELETE = '')
 		<if test="record!=null">
 			<if test="record.queryKey != null and record.queryKey != ''">
 				and (instr(c.vip_name, #{record.queryKey}) or instr(c.phone, #{record.queryKey}) or instr(a.order_no, #{record.queryKey}))
@@ -453,7 +453,7 @@
 		FROM sys_proj_services a
 		LEFT JOIN sys_vip_info b on b.ID=a.VIP_ID
 		left join sys_beautician_state c on a.id=c.SERVICES_ID
-		where  a.ID=#{id}
+		where  a.ID=#{id} and (b.IS_DELETE is null or b.IS_DELETE = '')
 	</select>
 
 	<select id="selectNeedNoticeService" resultMap="SysProjServicesMap">
@@ -465,7 +465,7 @@
 		LEFT JOIN sys_vip_info b on b.ID=a.VIP_ID
 		where   a.YY_TIME > now()
 		and DATE_ADD(now(),INTERVAL 1 HOUR) > a.YY_TIME
-		and overtime_notice is null
+		and overtime_notice is null  and (b.IS_DELETE is null or b.IS_DELETE = '')
 	</select>
 
 
@@ -486,7 +486,7 @@
 		FROM sys_proj_services a
 		LEFT JOIN sys_vip_info b on b.ID=a.VIP_ID
 		left join sys_beautician_state c on a.id=c.SERVICES_ID
-		WHERE 1 = 1
+		WHERE 1 = 1 and (b.IS_DELETE is null or b.IS_DELETE = '')
 		<if test="record!=null">
 			<if test="record.queryStaffId != null and record.queryStaffId !='' ">
 				and (a.CREATE_STAFF_ID  = #{record.queryStaffId}  or c.STAFF_ID=#{record.queryStaffId}  )
@@ -580,7 +580,7 @@
 		left join sys_proj_use g on b.puse_id=g.ID
 		left join sys_shop_info h on a.SHOP_ID=h.ID
 		<where>
-			and a.company_id=#{record.companyId}
+			and a.company_id=#{record.companyId} and (e.IS_DELETE is null or e.IS_DELETE = '')
 			<if test="record.queryKey != null and record.queryKey != ''">
 				and (instr(a.SERVICE_NO, #{record.queryKey}) or instr(e.phone, #{record.queryKey}) or instr(e.vip_name, #{record.queryKey}) )
 			</if>
@@ -617,7 +617,7 @@
 		left join sys_users f on f.su_id=b.STAFF_ID
 		left join sys_proj_use g on b.puse_id=g.ID
 		<where>
-			and a.company_id=#{record.companyId}
+			and a.company_id=#{record.companyId} and (e.IS_DELETE is null or e.IS_DELETE = '')
 			<if test="record.queryKey != null and record.queryKey != ''">
 				and (instr(a.SERVICE_NO, #{record.queryKey}) or instr(e.phone, #{record.queryKey}) or instr(e.vip_name, #{record.queryKey}) )
 			</if>
@@ -676,6 +676,7 @@
 		left join sys_shop_info h on a.SHOP_ID=h.ID
 		left join shopping_goods m on g.proj_id=m.id
 		<where>
+			and (e.IS_DELETE is null or e.IS_DELETE = '')
 			<if test="queryKey != null and queryKey != ''">
 				and instr(a.SERVICE_NO, #{queryKey})
 			</if>
@@ -727,7 +728,7 @@
 		left join sys_proj_use g on b.puse_id=g.ID
 		left join sys_shop_info h on a.SHOP_ID=h.ID
 		left join shopping_goods m on g.proj_id=m.id
-		where a.id=#{id}
+		where a.id=#{id} and (e.IS_DELETE is null or e.IS_DELETE = '')
 	</select>
 
 

--
Gitblit v1.9.1