he2802 преди 3 години
родител
ревизия
71488ea3af
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      zhongzheng-system/src/main/resources/mapper/modules/grade/ClassGradeUserMapper.xml

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