| | |
| | | * description:员工社保申请控制器 |
| | | * |
| | | * @author luoyibo |
| | | * @date 2021-01-24 20:35:33 |
| | | * @date 2021-01-31 11:26:23 |
| | | * @since JDK1.8 |
| | | */ |
| | | @Slf4j |
| | |
| | | try { |
| | | this.empInsuranceService.createEmpInsurance(empInsurance); |
| | | } catch (Exception e) { |
| | | String message = "新增EmpInsurance失败"; |
| | | String message = "新增员工社保申请失败"; |
| | | log.error(message, e); |
| | | throw new FebsException(message); |
| | | } |
| | |
| | | try { |
| | | this.empInsuranceService.deleteEmpInsurance(empInsurance); |
| | | } catch (Exception e) { |
| | | String message = "删除EmpInsurance失败"; |
| | | String message = "删除员工社保申请失败"; |
| | | log.error(message, e); |
| | | throw new FebsException(message); |
| | | } |
| | | } |
| | | |
| | | @DeleteMapping("{ids}") |
| | | @PreAuthorize("hasAuthority('empInsurance:delete')") |
| | | public void logicDeleteEmpInsurance(@PathVariable("ids") String ids) throws FebsException { |
| | | try { |
| | | this.empInsuranceService.logicDelEmpInsurance(ids); |
| | | } catch (Exception e) { |
| | | String message = "逻辑删除员工社保申请失败"; |
| | | log.error(message, e); |
| | | throw new FebsException(message); |
| | | } |
| | |
| | | try { |
| | | this.empInsuranceService.updateEmpInsurance(empInsurance); |
| | | } catch (Exception e) { |
| | | String message = "修改EmpInsurance失败"; |
| | | String message = "修改员工社保申请失败"; |
| | | log.error(message, e); |
| | | throw new FebsException(message); |
| | | } |