浏览代码

fix 学习记录

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>