소스 검색

fix 模拟随机做题

he2802 2 년 전
부모
커밋
92032bdaf7
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      zhongzheng-system/src/main/resources/mapper/modules/user/UserBankRecordMapper.xml

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