|
|
@ -2,9 +2,7 @@ package com.ccsens.defaultwbs.api; |
|
|
|
|
|
|
|
import com.ccsens.cloudutil.annotation.MustLogin; |
|
|
|
import com.ccsens.defaultwbs.bean.dto.ClockingInDto; |
|
|
|
import com.ccsens.defaultwbs.bean.dto.DeliverDto; |
|
|
|
import com.ccsens.defaultwbs.bean.vo.ClockingInVo; |
|
|
|
import com.ccsens.defaultwbs.bean.vo.DeliverVo; |
|
|
|
import com.ccsens.defaultwbs.service.IClockingInService; |
|
|
|
import com.ccsens.util.JsonResponse; |
|
|
|
import com.ccsens.util.bean.dto.QueryDto; |
|
|
@ -37,7 +35,9 @@ public class ClockingInController { |
|
|
|
@ApiOperation(value = "查询考勤信息", notes = "") |
|
|
|
@RequestMapping(value = "/query", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
|
public JsonResponse<List<ClockingInVo.ClockingInInfo>> queryDeliverOfTask(@ApiParam @Validated @RequestBody QueryDto<ClockingInDto.QueryClockingIn> params) throws Exception{ |
|
|
|
log.info("查询打卡信息:{}",params); |
|
|
|
List<ClockingInVo.ClockingInInfo> clockingInInfos = clockingInService.queryClockingIn(params.getParam(), params.getUserId()); |
|
|
|
log.info("查询-打卡信息返回:{}",clockingInInfos); |
|
|
|
return JsonResponse.newInstance().ok(clockingInInfos); |
|
|
|
} |
|
|
|
|
|
|
@ -45,6 +45,7 @@ public class ClockingInController { |
|
|
|
@ApiOperation(value = "打卡", notes = "") |
|
|
|
@RequestMapping(value = "/punch", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
|
public JsonResponse punchTheClock(@ApiParam @Validated @RequestBody QueryDto<ClockingInDto.PunchTheClock> params) throws Exception{ |
|
|
|
log.info("打卡:{}",params); |
|
|
|
clockingInService.punchTheClock(params.getParam(), params.getUserId()); |
|
|
|
return JsonResponse.newInstance().ok(); |
|
|
|
} |
|
|
@ -53,6 +54,7 @@ public class ClockingInController { |
|
|
|
@ApiOperation(value = "审核打卡", notes = "") |
|
|
|
@RequestMapping(value = "/audit", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|
|
|
public JsonResponse auditRecord(@ApiParam @Validated @RequestBody QueryDto<ClockingInDto.Audit> params) throws Exception{ |
|
|
|
log.info("审核打卡:{}",params); |
|
|
|
clockingInService.auditRecord(params.getParam(), params.getUserId()); |
|
|
|
return JsonResponse.newInstance().ok(); |
|
|
|
} |
|
|
|