From 112473768acb75b2f9bd7eca3da035ed624e5123 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Thu, 15 Apr 2021 17:52:06 +0800 Subject: [PATCH] Merge branch 'score_shop' of http://120.27.238.55:7000/r/beauty-erp into score_shop --- zq-erp/src/main/resources/mybatis/mapper/hive/AchieveNewDao.xml | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/zq-erp/src/main/resources/mybatis/mapper/hive/AchieveNewDao.xml b/zq-erp/src/main/resources/mybatis/mapper/hive/AchieveNewDao.xml index 4d98102..fb605a0 100644 --- a/zq-erp/src/main/resources/mybatis/mapper/hive/AchieveNewDao.xml +++ b/zq-erp/src/main/resources/mybatis/mapper/hive/AchieveNewDao.xml @@ -1076,4 +1076,25 @@ group by a.shop_id order by amount desc, a.shop_id </select> + + <!-- 顾问当天下单列表 --> + <select id="selectSaleManAchieveList" resultMap="AchieveNewMap"> + select * from achieve_new + where sale_id=#{saleId} and vip_id=#{vipId} and sale_id=beault_id + and date_format(datatime, '%Y-%m-%d') = date_format(#{date}, '%Y-%m-%d') + </select> + + <select id="selectBeautyManAchieveList" resultMap="AchieveNewMap"> + select * from achieve_new + where beault_id=#{beautyId} and vip_id=#{vipId} + and date_format(datatime, '%Y-%m-%d') = date_format(#{date}, '%Y-%m-%d') + </select> + + + <update id="updateAchieveNumOfPeople"> + <foreach collection="list" item="item" index="index" + separator=";"> + update achieve_new set number_of_people=#{num} where id=#{item.id} + </foreach> + </update> </mapper> \ No newline at end of file -- Gitblit v1.9.1