From d388e2788b7ef088d7cd40f901b0acdcec460bc3 Mon Sep 17 00:00:00 2001 From: wzy <wzy19931122ai@163.com> Date: Thu, 01 Apr 2021 00:19:23 +0800 Subject: [PATCH] modify --- zq-erp/src/main/resources/mybatis/mapper/hive/SysBeauticianStateDao.xml | 22 +++++++++++++++------- 1 files changed, 15 insertions(+), 7 deletions(-) diff --git a/zq-erp/src/main/resources/mybatis/mapper/hive/SysBeauticianStateDao.xml b/zq-erp/src/main/resources/mybatis/mapper/hive/SysBeauticianStateDao.xml index a6fd1d8..41b07c4 100644 --- a/zq-erp/src/main/resources/mybatis/mapper/hive/SysBeauticianStateDao.xml +++ b/zq-erp/src/main/resources/mybatis/mapper/hive/SysBeauticianStateDao.xml @@ -137,7 +137,8 @@ d.id as pu_id, d.SURPLUS_COUNT as pu_SURPLUS_COUNT, d.ASSEMBLE_ID as pu_ASSEMBLE_ID, - d.price as pu_price + d.price as pu_price, + d.taocan_id as pu_taocan_id from sys_beautician_state a @@ -147,10 +148,14 @@ where a.SERVICES_ID =#{serId} </select> + <!-- EXC_TIME =TIMESTAMPDIFF(MINUTE,BEGIN_TIME,now()) --> <update id="chengItemState"> - update sys_beautician_state set state=#{record.state}, - EXC_TIME =TIMESTAMPDIFF(MINUTE,BEGIN_TIME,now()) - where STAFF_ID=#{record.staffId} and SERVICES_ID =#{record.servicesId} + update sys_beautician_state set state=#{record.state} + where 1=1 + <if test="record.staffId != null"> + and STAFF_ID=#{record.staffId} + </if> + and SERVICES_ID =#{record.servicesId} </update> <!-- 根据id更新 部分更新 --> @@ -172,7 +177,7 @@ <if test="servicesId != null and servicesId !='' "> SERVICES_ID = #{servicesId}, </if> - <if test="servicesId != null and servicesId !='' "> + <if test="excTime != null and excTime !='' "> EXC_TIME = #{excTime}, </if> @@ -329,6 +334,7 @@ and a.STAFF_ID = #{suId} ]]> and a.STATE !='预约取消' and a.STATE !='待确认' + and a.STATE !='待预约' order by a.BEGIN_TIME asc </select> @@ -409,6 +415,7 @@ <select id="selectItemDetail" resultType="java.util.HashMap" parameterType="java.util.HashMap"> select f.SHOP_NAME, + b.yy_time, b.consume_time, b.SERVICE_NO, d.su_name, @@ -419,7 +426,8 @@ a.COUNT, h.PRICE, h.SOURCE, - a.STATE + a.STATE, + a.extract from sys_beautician_state a left join sys_proj_services b on a.SERVICES_ID=b.ID left join shopping_goods c on a.proj_id=c.id @@ -457,7 +465,7 @@ </if> <if test="cateId != null and cateId != '' "> - and c.PROJ_TYPE_ID=#{cateId} + and c.cate_id=#{cateId} </if> -- Gitblit v1.9.1