|
|
|
@ -126,10 +126,20 @@ public class StaffServiceImpl implements StaffService { |
|
|
|
return epmetUserFeignClient.getStaffList(fromDTO); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 人员添加页面初始化 |
|
|
|
* 备注:2022.10.18运营端-统一认证也会调用此接口,入参会给customerId |
|
|
|
* @param fromDTO 参数 |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public Result<List<RoleInfoResultDTO>> addStaffInit(StaffInfoFromDTO fromDTO) { |
|
|
|
CustomerAgencyEntity customerAgencyEntity = customerAgencyService.selectById(fromDTO.getAgencyId()); |
|
|
|
fromDTO.setCustomerId(customerAgencyEntity.getCustomerId()); |
|
|
|
if(StringUtils.isBlank(fromDTO.getCustomerId())){ |
|
|
|
if(StringUtils.isNotBlank(fromDTO.getAgencyId())){ |
|
|
|
CustomerAgencyEntity customerAgencyEntity = customerAgencyService.selectById(fromDTO.getAgencyId()); |
|
|
|
fromDTO.setCustomerId(customerAgencyEntity.getCustomerId()); |
|
|
|
} |
|
|
|
} |
|
|
|
return epmetUserFeignClient.addStaffInit(fromDTO); |
|
|
|
} |
|
|
|
|
|
|
|
|