ソースを参照

fix 模拟随机做题

he2802 2 年 前
コミット
92032bdaf7

+ 3 - 3
zhongzheng-system/src/main/resources/mapper/modules/user/UserBankRecordMapper.xml

@@ -64,7 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         LEFT JOIN exam_paper ep ON e.exam_paper_id = ep.paper_id
         WHERE
         ue.user_id = #{userId}
-        AND ud.do_mode in (1,2)
+        AND ue.do_mode in (1,2)
         AND ue.grade_id = #{gradeId}
         <if test="gradeId != null and gradeId != ''">
             AND ue.grade_id = #{gradeId}
@@ -98,7 +98,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         LEFT JOIN exam_paper ep ON e.exam_paper_id = ep.paper_id
         WHERE
         ue.user_id = #{userId}
-        AND ud.do_mode in (3)
+        AND ue.do_mode in (3)
         AND ue.grade_id = #{gradeId}
         <if test="gradeId != null and gradeId != ''">
             AND ue.grade_id = #{gradeId}
@@ -120,7 +120,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         </if>
         <if test="chapterId != null and chapterId != ''">
             AND ue.chapter_id = #{chapterId}
-        </if>)
+        </if>)a
         ORDER by create_time DESC
 
     </select>