| | |
| | | package cc.mrbird.febs.server.hr.controller; |
| | | |
| | | import cc.mrbird.febs.server.hr.entity.EmpRemarkInfo; |
| | | import cc.mrbird.febs.server.hr.service.IEmpRemarkInfoService; |
| | | import cc.mrbird.febs.server.hr.service.IEmpRemarkinfoService; |
| | | import cc.mrbird.febs.common.core.entity.FebsResponse; |
| | | import cc.mrbird.febs.common.core.entity.QueryRequest; |
| | | import cc.mrbird.febs.common.core.exception.FebsException; |
| | |
| | | * description:员工备注信息控制器 |
| | | * |
| | | * @author luoyibo |
| | | * @date 2021-01-24 20:35:15 |
| | | * @date 2021-01-31 11:26:48 |
| | | * @since JDK1.8 |
| | | */ |
| | | @Slf4j |
| | |
| | | @RequiredArgsConstructor |
| | | public class EmpRemarkInfoController { |
| | | |
| | | private final IEmpRemarkInfoService empRemarkinfoService; |
| | | private final IEmpRemarkinfoService empRemarkinfoService; |
| | | |
| | | @GetMapping |
| | | @PreAuthorize("hasAuthority('empRemarkinfo:list')") |
| | |
| | | try { |
| | | this.empRemarkinfoService.createEmpRemarkinfo(empRemarkinfo); |
| | | } catch (Exception e) { |
| | | String message = "新增EmpRemarkinfo失败"; |
| | | String message = "新增员工备注信息失败"; |
| | | log.error(message, e); |
| | | throw new FebsException(message); |
| | | } |
| | |
| | | try { |
| | | this.empRemarkinfoService.deleteEmpRemarkinfo(empRemarkinfo); |
| | | } catch (Exception e) { |
| | | String message = "删除EmpRemarkinfo失败"; |
| | | String message = "删除员工备注信息失败"; |
| | | log.error(message, e); |
| | | throw new FebsException(message); |
| | | } |
| | | } |
| | | |
| | | @DeleteMapping("{ids}") |
| | | @PreAuthorize("hasAuthority('empRemarkinfo:delete')") |
| | | public void logicDeleteEmpRemarkinfo(@PathVariable("ids") String ids) throws FebsException { |
| | | try { |
| | | this.empRemarkinfoService.logicDelEmpRemarkinfo(ids); |
| | | } catch (Exception e) { |
| | | String message = "逻辑删除员工备注信息失败"; |
| | | log.error(message, e); |
| | | throw new FebsException(message); |
| | | } |
| | |
| | | try { |
| | | this.empRemarkinfoService.updateEmpRemarkinfo(empRemarkinfo); |
| | | } catch (Exception e) { |
| | | String message = "修改EmpRemarkinfo失败"; |
| | | String message = "修改员工备注信息失败"; |
| | | log.error(message, e); |
| | | throw new FebsException(message); |
| | | } |