This commit is contained in:
@@ -229,6 +229,23 @@ public class ApplyClockInController {
|
|||||||
return ActionResult.success(MsgCode.SU006.get());
|
return ActionResult.success(MsgCode.SU006.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改外勤审批申请
|
||||||
|
* @param applyAttendanceOutsideDto 表单对象
|
||||||
|
* @return java.lang.Object
|
||||||
|
*/
|
||||||
|
@PutMapping("/test")
|
||||||
|
public Object test(@RequestBody @Valid ApplyAttendanceOutsideDto applyAttendanceOutsideDto) throws Exception {
|
||||||
|
ApplyAttendanceOutside entity = JsonUtil.getJsonToBean(applyAttendanceOutsideDto, ApplyAttendanceOutside.class);
|
||||||
|
entity.setId(applyAttendanceOutsideDto.getTaskId());
|
||||||
|
if (FlowStatusEnum.save.getMessage().equals(applyAttendanceOutsideDto.getStatus())) {
|
||||||
|
applyAttendanceOutsideService.save(entity, applyAttendanceOutsideDto);
|
||||||
|
return ActionResult.success(MsgCode.SU002.get());
|
||||||
|
}
|
||||||
|
applyAttendanceOutsideService.submit(entity, applyAttendanceOutsideDto);
|
||||||
|
return ActionResult.success(MsgCode.SU006.get());
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新建违规打卡审批申请
|
* 新建违规打卡审批申请
|
||||||
* @param applyAttendanceViolationDto 表单对象
|
* @param applyAttendanceViolationDto 表单对象
|
||||||
|
|||||||
Reference in New Issue
Block a user