fix(bug修复): 在职员工授权与人员入司工龄计算
1.增加了在职员工删除授权注解
2.入司工龄修改成X年X月的模式,而不是整年
| | |
| | | |
| | | @ApiOperation(value = "人员基本信息逻辑删除") |
| | | @DeleteMapping("{ids}") |
| | | @PreAuthorize("hasAuthority('empBaseinfo:delete')") |
| | | public void logicDeleteEmpBaseInfo(@NotBlank(message = "{required}") @PathVariable("ids") String ids) throws FebsException { |
| | | try { |
| | | this.empBaseInfoService.logicDelEmpBaseInfo(ids); |
| | |
| | | @FieldInfo(name = "seniority", type = "tinyint", explain = "入司工龄") |
| | | @TableField("seniority") |
| | | @ExcelField(value = "入司工龄") |
| | | private Integer seniority = 0; |
| | | private String seniority = "0年0月"; |
| | | |
| | | @FieldInfo(name = "nativePlace", type = "varchar", explain = "籍贯") |
| | | @TableField("nativePlace") |
| | |
| | | } |
| | | |
| | | if (StringUtils.isNotBlank(list.get(13).toString())) { |
| | | empBaseInfo.setSeniority(Integer.valueOf(list.get(13).toString())); |
| | | empBaseInfo.setSeniority(list.get(13).toString()); |
| | | } |
| | | |
| | | //籍贯 |