Bladeren bron

学校端支持查看学员练习情况

zouxuan 1 jaar geleden
bovenliggende
commit
23b95187e8

+ 2 - 2
mec-biz/src/main/java/com/ym/mec/biz/dal/dao/StudentAttendanceDao.java

@@ -398,7 +398,7 @@ public interface StudentAttendanceDao extends BaseDAO<Long, StudentAttendance> {
 
     Integer getStudentNumByStatus(@Param("courseScheduleId") Long courseScheduleId, @Param("status") StudentAttendanceStatusEnum studentAttendanceStatusEnum);
 
-    int countStudentLeave(@Param("params") Map<String, Object> params);
+    int countStudentLeave(Map<String, Object> params);
 
-    List<CourseHomeworkWrapper.StudentLeaveResult> queryStudentLeave(@Param("params") Map<String, Object> params);
+    List<CourseHomeworkWrapper.StudentLeaveResult> queryStudentLeave(Map<String, Object> params);
 }

+ 3 - 1
mec-biz/src/main/resources/config/mybatis/CourseScheduleMapper.xml

@@ -4397,7 +4397,9 @@
         from course_schedule cs
         left join course_homework ch on cs.id_ = ch.course_schedule_id_
         <include refid="selectPage"/>
-        <include refid="global.limit"/>
+        <if test="param.offset != null">
+            limit #{param.offset},#{param.rows}
+        </if>
     </select>
 
     <select id="countTeacherServeHomeworkDetailV2" resultType="int">