Bladeren bron

fix 学时时间

he2802 3 jaren geleden
bovenliggende
commit
f3e4e698c4

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