|
@@ -101,7 +101,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
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 (SELECT count(*) from exam_before_apply eba LEFT JOIN exam_apply_goods eag on eag.apply_id = eba.apply_id where eba.before_id = #{beforeId} and eag.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>
|
|
|
<if test="canExam != null and canExam == 1 ">
|