he2802 3 лет назад
Родитель
Сommit
22d4aa9044

+ 1 - 0
zhongzheng-system/src/main/resources/mapper/modules/user/UserSubscribeMapper.xml

@@ -97,6 +97,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="canBefore != null and canBefore == 1 ">
             and us.subscribe_status = 1
             and us.exam_status = 0
+            and us.before_id = #{beforeId}
             and (SELECT count(*) from exam_before_goods ebg where ebg.before_id = #{beforeId} and ebg.goods_id = us.goods_id) >0
             and (us.before_status = 1 or (SELECT count(*) from user_exam_goods ueg where ueg.user_id = us.user_id and ueg.goods_id = us.goods_id and ueg.do_number - ueg.expend_before>0)>0)
         </if>