浏览代码

fix 学时时间

he2802 3 年之前
父节点
当前提交
f3e4e698c4
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      zhongzheng-system/src/main/resources/mapper/modules/grade/ClassGradeUserMapper.xml

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

@@ -623,6 +623,9 @@
         WHERE
         ccs.chapter_id = cc.chapter_id
         AND usr.current_status = 1
+        <if test="courseId != null and courseId !='' ">
+            AND usr.course_id=#{courseId}
+        </if>
         <if test="moduleId != null and moduleId !='' ">
             AND usr.module_id=#{moduleId}
         </if>
@@ -648,6 +651,9 @@
         WHERE
         ccs.chapter_id = cc.chapter_id
         AND usr.current_status = 1
+        <if test="courseId != null and courseId !='' ">
+            AND usr.course_id=#{courseId}
+        </if>
         <if test="moduleId != null and moduleId !='' ">
             AND usr.module_id=#{moduleId}
         </if>