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 | 21 +++++++++++++-------- 1 files changed, 13 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 f7e620a..d1c42c5 100644 --- a/zq-erp/src/main/resources/mybatis/mapper/hive/SysProjServicesDao.xml +++ b/zq-erp/src/main/resources/mybatis/mapper/hive/SysProjServicesDao.xml @@ -42,6 +42,7 @@ <result property="reply" column="reply"/> <result property="overtimeNotice" column="overtime_notice"/> <result property="cashierId" column="cashier_id"/> + <result property="signPic" column="sign_pic"/> <result property="cashierName" column="cashierName"/> @@ -272,6 +273,9 @@ <if test="cashierId != null "> cashier_id = #{cashierId}, </if> + <if test="signPic != null "> + sign_pic = #{signPic}, + </if> </set> WHERE id=#{id} </update> @@ -307,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})) @@ -377,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})) @@ -449,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"> @@ -461,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> @@ -482,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} ) @@ -576,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> @@ -613,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> @@ -672,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> @@ -723,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