| | |
| | | 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> |