Commit 89d693a2876767a39426e30a1fcfeaec7f4b0dd7

Authored by litao@lymsh.com
1 parent 96b56a2c75

改bug

Showing 1 changed file with 2 additions and 2 deletions

platform-biz-service/src/main/resources/mainOrm/master/CouponMapper.xml View file @ 89d693a
... ... @@ -648,13 +648,13 @@
648 648 </select>
649 649  
650 650  
651   - <select id="findMulitPatientCount" parameterType="list">
  651 + <select id="findMulitPatientCount" parameterType="list" resultType="int">
652 652 select sum(a.mulit_patient_count) as count from (
653 653 select (count(1) - 1) as mulit_patient_count, a.user_id as count from (
654 654 select a.ymd, a.user_id from (
655 655 select DATE_FORMAT(create_date, '%Y-%m-%d') as ymd, user_id from coupon_info
656 656 where user_id in
657   - <foreach collection="userIds" open="(" close=")" separator="," item="uid">
  657 + <foreach collection="list" open="(" close=")" separator="," item="uid">
658 658 #{uid}
659 659 </foreach>
660 660 ) a group by a.ymd, a.user_id