浏览代码

fix 分销

he2802 2 年之前
父节点
当前提交
90b7739f9e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      zhongzheng-system/src/main/resources/mapper/modules/user/UserExamRecordMapper.xml

+ 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