|  | @@ -1,7 +1,9 @@
 | 
											
												
													
														|  |  package com.ym.mec.web.controller.student;
 |  |  package com.ym.mec.web.controller.student;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  import com.ym.mec.biz.dal.dto.StudentAttendanceDto;
 |  |  import com.ym.mec.biz.dal.dto.StudentAttendanceDto;
 | 
											
												
													
														|  | 
 |  | +import com.ym.mec.biz.dal.page.CourseScheduleQueryInfo;
 | 
											
												
													
														|  |  import com.ym.mec.biz.dal.page.StudentAttendanceQueryInfo;
 |  |  import com.ym.mec.biz.dal.page.StudentAttendanceQueryInfo;
 | 
											
												
													
														|  | 
 |  | +import com.ym.mec.biz.service.ClassGroupService;
 | 
											
												
													
														|  |  import com.ym.mec.biz.service.StudentAttendanceService;
 |  |  import com.ym.mec.biz.service.StudentAttendanceService;
 | 
											
												
													
														|  |  import com.ym.mec.common.controller.BaseController;
 |  |  import com.ym.mec.common.controller.BaseController;
 | 
											
												
													
														|  |  import com.ym.mec.common.page.QueryInfo;
 |  |  import com.ym.mec.common.page.QueryInfo;
 | 
											
										
											
												
													
														|  | @@ -11,13 +13,15 @@ import org.springframework.beans.factory.annotation.Autowired;
 | 
											
												
													
														|  |  import org.springframework.security.access.prepost.PreAuthorize;
 |  |  import org.springframework.security.access.prepost.PreAuthorize;
 | 
											
												
													
														|  |  import org.springframework.web.bind.annotation.*;
 |  |  import org.springframework.web.bind.annotation.*;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -@RequestMapping("studentAttendanceOld")
 |  | 
 | 
											
												
													
														|  | 
 |  | +@RequestMapping("studentAttendance")
 | 
											
												
													
														|  |  @Api(tags = "学生考勤服务")
 |  |  @Api(tags = "学生考勤服务")
 | 
											
												
													
														|  |  @RestController
 |  |  @RestController
 | 
											
												
													
														|  | -public class StudentAttendanceOldController extends BaseController {
 |  | 
 | 
											
												
													
														|  | 
 |  | +public class StudentAttendanceController extends BaseController {
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      @Autowired
 |  |      @Autowired
 | 
											
												
													
														|  |      private StudentAttendanceService studentAttendanceService;
 |  |      private StudentAttendanceService studentAttendanceService;
 | 
											
												
													
														|  | 
 |  | +    @Autowired
 | 
											
												
													
														|  | 
 |  | +    private ClassGroupService classGroupService;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      @ApiOperation(value = "点名完成")
 |  |      @ApiOperation(value = "点名完成")
 | 
											
												
													
														|  |      @PostMapping("/addStudentAttendances")
 |  |      @PostMapping("/addStudentAttendances")
 | 
											
										
											
												
													
														|  | @@ -39,4 +43,19 @@ public class StudentAttendanceOldController extends BaseController {
 | 
											
												
													
														|  |          return succeed(studentAttendanceService.findStudentAttendance(queryInfo));
 |  |          return succeed(studentAttendanceService.findStudentAttendance(queryInfo));
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +    @ApiOperation(value = "查询课程学生列表")
 | 
											
												
													
														|  | 
 |  | +    @GetMapping("/findAttendanceStudentByCourseWithPage")
 | 
											
												
													
														|  | 
 |  | +    @PreAuthorize("@pcs.hasPermissions('teacherAttendance/findAttendanceStudentByCourseWithPage')")
 | 
											
												
													
														|  | 
 |  | +    public Object findAttendanceStudentByCourseWithPage(CourseScheduleQueryInfo queryInfo){
 | 
											
												
													
														|  | 
 |  | +        return succeed(classGroupService.findAttendanceStudentByCourseWithPage(queryInfo));
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +    @ApiOperation(value = "更新学生签到记录")
 | 
											
												
													
														|  | 
 |  | +    @PostMapping("/updateStudentAttendances")
 | 
											
												
													
														|  | 
 |  | +    @PreAuthorize("@pcs.hasPermissions('teacherAttendance/updateStudentAttendances')")
 | 
											
												
													
														|  | 
 |  | +    public Object updateStudentAttendances(@RequestBody StudentAttendanceDto studentAttendanceInfo){
 | 
											
												
													
														|  | 
 |  | +        studentAttendanceService.updateStudentAttendances(studentAttendanceInfo);
 | 
											
												
													
														|  | 
 |  | +        return succeed();
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |  }
 |  |  }
 |