Browse Source

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

zouxuan 1 year ago
parent
commit
00755c902d

+ 11 - 0
mec-application/src/main/java/com/ym/mec/web/controller/ClassGroupController.java

@@ -450,6 +450,17 @@ public class ClassGroupController extends BaseController {
         return succeed(PageUtil.pageInfo(courseTeachingPointIPage));
     }
 
+    @ApiOperation(value = "管理端-场地管理列表")
+    @PostMapping("/eduTeachingPointCourse")
+    public HttpResponseResult<PageInfo<TeachingPointWrapper.CourseTeachingPoint>>
+    eduTeachingPointCourse(@RequestBody TeachingPointWrapper.TeachingPointQuery queryInfo) {
+        if (queryInfo.getCourseStatus() == null) {
+            queryInfo.setCourseStatus(CourseStatusEnum.OVER);
+        }
+        IPage<TeachingPointWrapper.CourseTeachingPoint> courseTeachingPointIPage = courseScheduleService.teachingPointCourse(queryInfo);
+        return succeed(PageUtil.pageInfo(courseTeachingPointIPage));
+    }
+
     @ApiOperation(value = "学校端-场地设置列表")
     @PostMapping("/teachingPointClass")
     public HttpResponseResult<PageInfo<TeachingPointWrapper.ClassTeachingPoint>> teachingPointClass(@RequestBody TeachingPointWrapper.TeachingPointQuery queryInfo,@RequestHeader Integer coopId) {

+ 1 - 0
mec-biz/src/main/resources/config/mybatis/StudentAttendanceMapper.xml

@@ -774,6 +774,7 @@
         left join class_group cg ON cg.id_ = cs.class_group_id_
         left join sys_user su ON su.id_ = sa.user_id_
         <include refid="queryStudentLeaveCondition"/>
+        <include refid="global.limit"/>
     </select>
     <select id="countStudentLeave" resultType="java.lang.Integer">
         select COUNT(sa.id_) from student_attendance sa