| | |
| | | * description:离职当月考勤控制器 |
| | | * |
| | | * @author luoyibo |
| | | * @date 2021-01-24 20:35:38 |
| | | * @date 2021-01-31 11:26:04 |
| | | * @since JDK1.8 |
| | | */ |
| | | @Slf4j |
| | | @Validated |
| | | @RestController |
| | | @RequestMapping("empDimissionattend") |
| | | @RequestMapping("empDimissionAttend") |
| | | @RequiredArgsConstructor |
| | | public class EmpDimissionAttendController { |
| | | |
| | |
| | | try { |
| | | this.empDimissionattendService.createEmpDimissionattend(empDimissionattend); |
| | | } catch (Exception e) { |
| | | String message = "新增EmpDimissionattend失败"; |
| | | String message = "新增离职当月考勤失败"; |
| | | log.error(message, e); |
| | | throw new FebsException(message); |
| | | } |
| | |
| | | try { |
| | | this.empDimissionattendService.deleteEmpDimissionattend(empDimissionattend); |
| | | } catch (Exception e) { |
| | | String message = "删除EmpDimissionattend失败"; |
| | | String message = "删除离职当月考勤失败"; |
| | | log.error(message, e); |
| | | throw new FebsException(message); |
| | | } |
| | | } |
| | | |
| | | @DeleteMapping("{ids}") |
| | | @PreAuthorize("hasAuthority('empDimissionattend:delete')") |
| | | public void logicDeleteEmpDimissionattend(@PathVariable("ids") String ids) throws FebsException { |
| | | try { |
| | | this.empDimissionattendService.logicDelEmpDimissionattend(ids); |
| | | } catch (Exception e) { |
| | | String message = "逻辑删除离职当月考勤失败"; |
| | | log.error(message, e); |
| | | throw new FebsException(message); |
| | | } |
| | |
| | | try { |
| | | this.empDimissionattendService.updateEmpDimissionattend(empDimissionattend); |
| | | } catch (Exception e) { |
| | | String message = "修改EmpDimissionattend失败"; |
| | | String message = "修改离职当月考勤失败"; |
| | | log.error(message, e); |
| | | throw new FebsException(message); |
| | | } |