| | |
| | | this.empAccidentCasesService.createEmpAccidentcases(empAccidentcases); |
| | | } catch (Exception e) { |
| | | String message = "新增员工意外险案件失败"; |
| | | if (!StrUtil.equals(e.getMessage(), MyConstant.MESSAGE)){ |
| | | if (StrUtil.equals(e.getMessage(), MyConstant.MESSAGE)){ |
| | | message = e.getMessage(); |
| | | } |
| | | log.error(message, e); |
| | |
| | | } |
| | | |
| | | @DeleteMapping("{ids}") |
| | | @PreAuthorize("hasAuthority('empAccidentcases:delete')") |
| | | public void logicDeleteEmpAccidentCases(@PathVariable("ids") String ids) throws FebsException { |
| | | try { |
| | | this.empAccidentCasesService.logicDelEmpAccidentCases(ids); |
| | |
| | | this.empAccidentCasesService.updateEmpAccidentcases(empAccidentcases); |
| | | } catch (Exception e) { |
| | | String message = "修改员工意外险案件失败"; |
| | | if (!StrUtil.equals(e.getMessage(), MyConstant.MESSAGE)){ |
| | | if (StrUtil.equals(e.getMessage(), MyConstant.MESSAGE)){ |
| | | message = e.getMessage(); |
| | | } |
| | | log.error(message, e); |