浏览代码

fix 新增随机试卷

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

+ 1 - 1
zhongzheng-system/src/main/resources/mapper/modules/bank/ExamTempMapper.xml

@@ -80,7 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                             FROM
                                 user_exam_record uer
                             WHERE
-                                order_goods_id = #{orderGoodsId} and `type` = 2
+                                order_goods_id = #{orderGoodsId} and do_mode = 2
                         ))  GROUP BY question_id ) ORDER BY RAND() LIMIT  #{number}
     </select>
 </mapper>