tanzh 3 năm trước cách đây
mục cha
commit
0338f97ef1

+ 1 - 1
zhongzheng-system/src/main/resources/mapper/modules/user/UserMockRecordMapper.xml

@@ -136,7 +136,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         user_mock_record ue
         LEFT JOIN exam e ON ue.exam_id = e.exam_id
         LEFT JOIN exam_paper ep ON e.exam_paper_id = ep.paper_id
-        LEFT JOIN user_mock_subscribe ums ON ue.each_exam_id = ums.each_exam_id
         WHERE
         ue.user_id = #{userId}
         GROUP BY
@@ -147,6 +146,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         LEFT JOIN user_mock_record ue ON t.record_id = ue.record_id
         LEFT JOIN exam e ON ue.exam_id = e.exam_id
         LEFT JOIN exam_paper ep ON e.exam_paper_id = ep.paper_id
+        LEFT JOIN user_mock_subscribe ums ON ue.each_exam_id = ums.each_exam_id
         WHERE
         ue.user_id = #{userId}
         <if test="paperId != null and paperId != ''">