he2802 2 anos atrás
pai
commit
90b7739f9e

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

@@ -400,7 +400,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
               FROM
                   exam_question eq
               WHERE
-                      eq.exam_id IN ( SELECT DISTINCT exam_id FROM user_exam_record WHERE user_id = #{userId} AND order_goods_id = #{orderGoodsId} )
+                      eq.exam_id IN ( SELECT DISTINCT exam_id FROM user_exam_record WHERE user_id = #{userId} and do_mode = 1 AND order_goods_id = #{orderGoodsId} )
               GROUP BY
                   eq.exam_id ) uer
                 LEFT JOIN exam e ON e.exam_id = uer.exam_id