| | |
| | | private AttendanceService attendanceService; |
| | | |
| | | @ApiOperation(value = "打卡", notes = "") |
| | | @PostMapping(value = "/attendanceUpAndAdd") |
| | | @GetMapping(value = "/attendanceUpAndAdd") |
| | | public String attendanceUpAndAdd(String studentId, String subjectId) { |
| | | return attendanceService.attendanceUpAndAdd(studentId,subjectId); |
| | | } |
| | | |
| | | @ApiOperation(value = "考勤信息", notes = "") |
| | | @GetMapping(value = "/attendanceList") |
| | | public Result attendanceList(@RequestParam(defaultValue = "10") Integer limit, @RequestParam(defaultValue = "1") Integer pageNum, String keyword) { |
| | | public Result attendanceList(@RequestParam(defaultValue = "10") Integer limit, @RequestParam(defaultValue = "1") Integer pageNum, String keyword, String subjectId) { |
| | | |
| | | List<StuStudent> attendanceList = attendanceService.findAttendanceList(limit, pageNum, keyword); |
| | | List<StuStudent> attendanceList = attendanceService.findAttendanceList(limit, pageNum, keyword,subjectId); |
| | | |
| | | int count = attendanceService.findAttendanceListCount(keyword); |
| | | int count = attendanceService.findAttendanceListCount(keyword,subjectId); |
| | | |
| | | |
| | | return new Result(true,"success", CollectionUtils.newObjectMap("attendanceList", |
| | |
| | | |
| | | @ApiOperation(value = "修改考勤状态", notes = "") |
| | | @GetMapping(value = "/updateAttendanceStatus") |
| | | public Result updateAttendanceStatus(String studentId, String attendanceStatus) { |
| | | public Result updateAttendanceStatus(String[] studentId, String attendanceStatus) { |
| | | return attendanceService.updateAttendanceStatus(studentId,attendanceStatus); |
| | | } |
| | | } |