jyy
2021-04-20 e09449ffcf303f67f5bbd168383b285600a251ec
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>