Browse Source

1.1v1,1v2 支持多个

yuanliang 1 year ago
parent
commit
9f309958e2

+ 3 - 3
mec-biz/src/main/resources/config/mybatis/StudentPaymentOrderMapper.xml

@@ -1424,14 +1424,14 @@
               where status_ = 'SUCCESS'
                 and group_type_ = 'VIP'
                 and type_ = 'SMALL_CLASS_TO_BUY'
-                and activity_id_ = #{param.v1}
+                and find_in_set(activity_id_, #{v1})
               union
               select user_id_, organ_id_
               from student_payment_order
               where status_ = 'SUCCESS'
                 and group_type_ = 'VIP'
                 and type_ = 'SMALL_CLASS_TO_BUY'
-                and activity_id_ = #{param.v2}
+                and find_in_set(activity_id_, #{v2})
               union
               SELECT user_id_, organ_id_
               FROM student_payment_order
@@ -1469,7 +1469,7 @@
               where status_ = 'SUCCESS'
                 and group_type_ = 'VIP'
                 and type_ = 'SMALL_CLASS_TO_BUY'
-                and activity_id_ = #{param.theory}) t
+                and find_in_set(activity_id_, #{param.theory})) t
         group by organ_id_
     </select>
 </mapper>