| | |
| | | * description:员工合同信息控制器 |
| | | * |
| | | * @author luoyibo |
| | | * @date 2021-01-24 20:35:42 |
| | | * @date 2021-01-31 11:28:23 |
| | | * @since JDK1.8 |
| | | */ |
| | | @Slf4j |
| | | @Validated |
| | | @RestController |
| | | @RequestMapping("empContractinfo") |
| | | @RequestMapping("empContractInfo") |
| | | @RequiredArgsConstructor |
| | | public class EmpContractInfoController { |
| | | |
| | |
| | | try { |
| | | this.empContractinfoService.createEmpContractinfo(empContractinfo); |
| | | } catch (Exception e) { |
| | | String message = "新增EmpContractinfo失败"; |
| | | String message = "新增员工合同信息失败"; |
| | | log.error(message, e); |
| | | throw new FebsException(message); |
| | | } |
| | |
| | | try { |
| | | this.empContractinfoService.deleteEmpContractinfo(empContractinfo); |
| | | } catch (Exception e) { |
| | | String message = "删除EmpContractinfo失败"; |
| | | String message = "删除员工合同信息失败"; |
| | | log.error(message, e); |
| | | throw new FebsException(message); |
| | | } |
| | | } |
| | | |
| | | @DeleteMapping("{ids}") |
| | | @PreAuthorize("hasAuthority('empContractinfo:delete')") |
| | | public void logicDeleteEmpContractinfo(@PathVariable("ids") String ids) throws FebsException { |
| | | try { |
| | | this.empContractinfoService.logicDelEmpContractinfo(ids); |
| | | } catch (Exception e) { |
| | | String message = "逻辑删除员工合同信息失败"; |
| | | log.error(message, e); |
| | | throw new FebsException(message); |
| | | } |
| | |
| | | try { |
| | | this.empContractinfoService.updateEmpContractinfo(empContractinfo); |
| | | } catch (Exception e) { |
| | | String message = "修改EmpContractinfo失败"; |
| | | String message = "修改员工合同信息失败"; |
| | | log.error(message, e); |
| | | throw new FebsException(message); |
| | | } |