| | |
| | | |
| | | @ApiOperation(value = "上班打卡", tags = "运维APP-排班与考勤") |
| | | @PostMapping("/maintenance-app/api/v1/clock/clockIn") |
| | | public R<String> clockIn(@RequestBody ClockDTO dto) { |
| | | public R<Integer> clockIn(@RequestBody ClockDTO dto) { |
| | | Long id = tokenService.getLoginOperationUser().getId(); |
| | | dto.setOperationsUserId(id); |
| | | return xpClockInService.clockIn(dto); |
| | |
| | | |
| | | @ApiOperation(value = "下班打卡", tags = "运维APP-排班与考勤") |
| | | @PostMapping("/maintenance-app/api/v1/clock/clockOut") |
| | | public R<String> clockOut(@RequestBody ClockDTO dto) { |
| | | public R<Integer> clockOut(@RequestBody ClockDTO dto) { |
| | | Long id = tokenService.getLoginOperationUser().getId(); |
| | | dto.setOperationsUserId(id); |
| | | return xpClockInService.clockOut(dto); |
| | |
| | | @PostMapping("/api/v1/clock/exportClockInStatisticsDetails") |
| | | public void exportClockInStatisticsDetails(@RequestBody ClockInStatisticsDetailsVo query, HttpServletResponse response) { |
| | | xpClockInService.exportClockInStatisticsDetails(query, response); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "获取打卡详情", tags = "运维APP-排班与考勤") |
| | | @PostMapping("/maintenance-app/api/v1/clock/getClockInfo") |
| | | public R<XpClockIn> getClockInfo(){ |
| | | Long id = tokenService.getLoginOperationUser().getId(); |
| | | XpClockIn one = xpClockInService.getOne(new QueryWrapper<XpClockIn>().eq("app_user_id", id) |
| | | .eq("is_deleted", 0).last(" and DATE(create_time) = DATE(NOW())")); |
| | | return R.ok(one); |
| | | } |
| | | |
| | | } |