| | |
| | | * description:员工劳资案件控制器 |
| | | * |
| | | * @author luoyibo |
| | | * @date 2021-01-24 20:35:59 |
| | | * @date 2021-01-31 11:26:36 |
| | | * @since JDK1.8 |
| | | */ |
| | | @Slf4j |
| | | @Validated |
| | | @RestController |
| | | @RequestMapping("empLabortrouble") |
| | | @RequestMapping("empLaborTrouble") |
| | | @RequiredArgsConstructor |
| | | public class EmpLaborTroubleController { |
| | | |
| | |
| | | try { |
| | | this.empLabortroubleService.createEmpLabortrouble(empLabortrouble); |
| | | } catch (Exception e) { |
| | | String message = "新增EmpLabortrouble失败"; |
| | | String message = "新增员工劳资案件失败"; |
| | | log.error(message, e); |
| | | throw new FebsException(message); |
| | | } |
| | |
| | | try { |
| | | this.empLabortroubleService.deleteEmpLabortrouble(empLabortrouble); |
| | | } catch (Exception e) { |
| | | String message = "删除EmpLabortrouble失败"; |
| | | String message = "删除员工劳资案件失败"; |
| | | log.error(message, e); |
| | | throw new FebsException(message); |
| | | } |
| | | } |
| | | |
| | | @DeleteMapping("{ids}") |
| | | @PreAuthorize("hasAuthority('empLabortrouble:delete')") |
| | | public void logicDeleteEmpLabortrouble(@PathVariable("ids") String ids) throws FebsException { |
| | | try { |
| | | this.empLabortroubleService.logicDelEmpLabortrouble(ids); |
| | | } catch (Exception e) { |
| | | String message = "逻辑删除员工劳资案件失败"; |
| | | log.error(message, e); |
| | | throw new FebsException(message); |
| | | } |
| | |
| | | try { |
| | | this.empLabortroubleService.updateEmpLabortrouble(empLabortrouble); |
| | | } catch (Exception e) { |
| | | String message = "修改EmpLabortrouble失败"; |
| | | String message = "修改员工劳资案件失败"; |
| | | log.error(message, e); |
| | | throw new FebsException(message); |
| | | } |