he2802 3 жил өмнө
parent
commit
71488ea3af

+ 3 - 0
zhongzheng-system/src/main/resources/mapper/modules/grade/ClassGradeUserMapper.xml

@@ -590,6 +590,7 @@
         LEFT JOIN course_chapter_section ccs ON usr.section_id = ccs.section_id
         WHERE
         ccs.chapter_id = cc.chapter_id
+        AND usr.current_status = 1
         <if test="goodsId != null and goodsId !='' ">
             AND usr.goods_id=#{goodsId}
         </if>
@@ -611,6 +612,7 @@
         LEFT JOIN course_chapter_section ccs ON usr.section_id = ccs.section_id
         WHERE
         ccs.chapter_id = cc.chapter_id
+        AND usr.current_status = 1
         <if test="goodsId != null and goodsId !='' ">
             AND usr.goods_id=#{goodsId}
         </if>
@@ -631,6 +633,7 @@
         user_bank_record ubr
         LEFT JOIN course_menu_exam cme ON cme.exam_id = ubr.exam_id
         WHERE 1=1
+        AND ubr.current_status = 1
         <if test="goodsId != null and goodsId !='' ">
             AND ubr.goods_id=#{goodsId}
         </if>