From c253b555c7905c5136d47cd615ef545fa50cc6ad Mon Sep 17 00:00:00 2001 From: 935090232@qq.com <ak473600000> Date: Sun, 20 Feb 2022 21:24:16 +0800 Subject: [PATCH] Merge branch 'api_score_meger' --- zq-erp/src/main/resources/mybatis/mapper/hive/SysBeauticianStateDao.xml | 50 ++++++++++++++++++++++++++++++++++++-------------- 1 files changed, 36 insertions(+), 14 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 14241e6..709e6c9 100644 --- a/zq-erp/src/main/resources/mybatis/mapper/hive/SysBeauticianStateDao.xml +++ b/zq-erp/src/main/resources/mybatis/mapper/hive/SysBeauticianStateDao.xml @@ -131,15 +131,15 @@ a.count, a.proj_id, b.su_name, - c.name as goods_name, - c.seal_pice as goods_seal_pice, + d.proj_name as goods_name, + d.price as goods_seal_pice, c.TIME_LENGTH as goods_time_length, 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, + d.source as pu_source from sys_beautician_state a left join sys_users b on a.staff_id= b.su_id left join shopping_goods c on a.proj_id=c.id @@ -147,10 +147,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 +176,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> @@ -327,6 +331,9 @@ <![CDATA[ a.BEGIN_TIME > #{beginTime} and a.END_TIME < #{endTime} and a.STAFF_ID = #{suId} ]]> + and a.STATE !='预约取消' + and a.STATE !='待确认' + and a.STATE !='待预约' order by a.BEGIN_TIME asc </select> @@ -355,9 +362,9 @@ SERVICES_ID, EXC_TIME, extract, - a.puse_id, - a.count, - a.proj_id + puse_id, + count, + proj_id </sql> <sql id="from"> from sys_beautician_state @@ -407,6 +414,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, @@ -417,7 +425,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 @@ -455,7 +464,7 @@ </if> <if test="cateId != null and cateId != '' "> - and c.PROJ_TYPE_ID=#{cateId} + and c.cate_id=#{cateId} </if> @@ -614,4 +623,17 @@ group by c.id,f.id) t </select> + <select id="selectByProjUse" resultMap="SysBeauticianStateMap"> + select * from sys_beautician_state + where state!=#{state} and puse_id in + <foreach collection="list" index="index" item="item" open="(" + separator="," close=")"> + #{item.id} + </foreach> + </select> + + <select id="selectBeauticianStateByPuseIdAndNoStatus" resultMap="SysBeauticianStateMap"> + select * from sys_beautician_state + where puse_id=#{puseId} and state!=#{state} + </select> </mapper> \ No newline at end of file -- Gitblit v1.9.1