|
|
@ -193,11 +193,9 @@ public class StaffServiceImpl implements StaffService { |
|
|
|
} |
|
|
|
return new Result().error(EpmetErrorCode.STAFF_EDIT_FAILED.getCode(), EpmetErrorCode.STAFF_EDIT_FAILED.getMsg()); |
|
|
|
} |
|
|
|
if (CollectionUtils.isNotEmpty(fromDTO.getNewRoles())){ |
|
|
|
Result roleUserAccess = govAccessFeignClient.roleUser(new RoleUserFormDTO(fromDTO.getNewRoles(), fromDTO.getStaffId(),fromDTO.getCustomerId())); |
|
|
|
if (!roleUserAccess.success()){ |
|
|
|
throw new EpmetException("save data to gov-role-user failure"); |
|
|
|
} |
|
|
|
Result roleUserAccess = govAccessFeignClient.roleUser(new RoleUserFormDTO(fromDTO.getNewRoles(), fromDTO.getStaffId(),fromDTO.getCustomerId())); |
|
|
|
if (!roleUserAccess.success()){ |
|
|
|
throw new EpmetException("save data to gov-role-user failure"); |
|
|
|
} |
|
|
|
//2021.8.24 sun 人员信息编辑时删除工作人员的缓存信息
|
|
|
|
CustomerStaffRedis.delStaffInfoFormCache(fromDTO.getCustomerId(), fromDTO.getStaffId()); |
|
|
|