From ae0388b62dcb7576674b8486395eab7b286befce Mon Sep 17 00:00:00 2001 From: 姜友瑶 <935090232@qq.com> Date: Wed, 15 Jun 2022 12:22:46 +0800 Subject: [PATCH] fead:库存流向记录新增原单号和会员显示 --- zq-erp/src/main/resources/mybatis/mapper/hive/SysProjServicesDao.xml | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 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 ac6c675..30b5c74 100644 --- a/zq-erp/src/main/resources/mybatis/mapper/hive/SysProjServicesDao.xml +++ b/zq-erp/src/main/resources/mybatis/mapper/hive/SysProjServicesDao.xml @@ -446,6 +446,30 @@ where a.ID=#{id} </select> + <!-- 根据id查询--> + <select id="selectByIds" resultMap="SysProjServicesMap"> + select distinct + a.*, + b.PHONE , + b.VIP_Name , + b.VIP_NO, + (select su_name from sys_users f where a.CREATE_STAFF_ID=f.su_id ) as createStaffName, + (select su_name from sys_users j where a.BEAUTICIAN_ID=j.su_id ) as beautiName, + (select su_name from sys_users k where a.devision_id=k.su_id ) as plsName, + (select su_name from sys_users l where a.cashier_id=l.su_id ) as cashierName, + (select shop_name from sys_shop_info h where a.SHOP_ID=h.ID ) as shopName, + (select bed_name from sys_bed_info i where a.BED_ID=i.ID ) as bedName + 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 in + <foreach collection="list" index="index" item="item" open="(" + separator="," close=")"> + #{item} + </foreach> + </select> + + <select id="selectNeedNoticeService" resultMap="SysProjServicesMap"> select a.id, -- Gitblit v1.9.1