From c0691d2302bbaed2a47b2b703b83ed5bc204e397 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Sun, 27 Dec 2020 14:31:10 +0800 Subject: [PATCH] modify --- zq-erp/src/main/resources/mybatis/mapper/hive/SysProjServicesDao.xml | 9 ++++++++- 1 files changed, 8 insertions(+), 1 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 1df9bcf..bb56269 100644 --- a/zq-erp/src/main/resources/mybatis/mapper/hive/SysProjServicesDao.xml +++ b/zq-erp/src/main/resources/mybatis/mapper/hive/SysProjServicesDao.xml @@ -466,6 +466,7 @@ <result property="vipName" column="vipName" /> <result property="timeLength" column="timeLength" /> <result property="status" column="status" /> + <result property="staffId" column="staffId" /> <collection property="projs" ofType="com.matrix.system.app.vo.ServiceOrderListProjVo"> <result property="projName" column="projName" /> <result property="beautyName" column="beautyName" /> @@ -483,7 +484,7 @@ a.state status, d.BED_NAME bed, e.VIP_NAME vipName, - b.staff_id staffId, + a.create_staff_id staffId, f.su_name beautyName, g.proj_name projName from sys_proj_services a @@ -502,6 +503,9 @@ </if> <if test="record.shopId != null"> and a.shop_id=#{record.shopId} + </if> + <if test="record.userId!=null"> + and (a.create_staff_id=#{record.userId} or b.staff_id=#{record.userId}) </if> </where> <if test="pageVo !=null"><!-- 判断pageVo对象是否为空 --> @@ -532,6 +536,9 @@ <if test="record.shopId != null"> and a.shop_id=#{record.shopId} </if> + <if test="record.userId!=null"> + and (a.create_staff_id=#{record.userId} or b.staff_id=#{record.userId}) + </if> </where> </select> </mapper> -- Gitblit v1.9.1