|
|
@ -331,6 +331,7 @@ public class StaffServiceImpl implements StaffService { |
|
|
|
|
|
|
|
//2.调用user服务,新增用户信息
|
|
|
|
StaffSubmitFromDTO submitDTO = ConvertUtils.sourceToTarget(fromDTO, StaffSubmitFromDTO.class); |
|
|
|
submitDTO.setAgencyId(fromDTO.getOrgId()); |
|
|
|
Result<CustomerStaffDTO> result = epmetUserFeignClient.addStaff(submitDTO); |
|
|
|
if (!result.success()) { |
|
|
|
if (result.getCode() != EpmetErrorCode.SERVER_ERROR.getCode()) { |
|
|
@ -380,7 +381,7 @@ public class StaffServiceImpl implements StaffService { |
|
|
|
StaffOrgRelationEntity staffOrgRelationEntity = new StaffOrgRelationEntity(); |
|
|
|
staffOrgRelationEntity.setCustomerId(fromDTO.getCustomerId()); |
|
|
|
if("agency".equals(fromDTO.getOrgType())){ |
|
|
|
staffOrgRelationEntity.setPids(("".equals(orgDTO.getPids()) ? "" : orgDTO.getPids() + ":")); |
|
|
|
staffOrgRelationEntity.setPids(("".equals(orgDTO.getPids()) ? "" : orgDTO.getPids())); |
|
|
|
}else { |
|
|
|
staffOrgRelationEntity.setPids(("".equals(orgDTO.getPids()) ? "" : orgDTO.getPids() + ":") + orgDTO.getAgencyId()); |
|
|
|
} |
|
|
|