Browse Source

fix 新增随机试卷

he2802 2 years ago
parent
commit
8483fd59f0

+ 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>