Browse Source

vip活动

zouxuan 3 years ago
parent
commit
9d70780905

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

@@ -1062,7 +1062,7 @@
         LIMIT 1
         LIMIT 1
     </select>
     </select>
     <select id="countByActivityIds" resultType="java.lang.Integer">
     <select id="countByActivityIds" resultType="java.lang.Integer">
-        SELECT COUNT(0) FROM student_payment_order WHERE user_id_ = #{userId} AND activity_id_ IN
+        SELECT COUNT(0) FROM student_payment_order WHERE user_id_ = #{userId} AND status_ = 'SUCCESS' AND activity_id_ IN
         <foreach collection="activityIds" item="activityId" open="(" close=")" separator=",">
         <foreach collection="activityIds" item="activityId" open="(" close=")" separator=",">
             #{activityId}
             #{activityId}
         </foreach>
         </foreach>