|
|
@ -393,8 +393,15 @@ public class AgencyServiceImpl implements AgencyService { |
|
|
|
ScreenCustomerAgencyDTO rootAgency=screenCustomerAgencyDao.selectCustomerRootAgency(formDTO.getCustomerId()); |
|
|
|
agencysResultDTO.setRootlevel(rootAgency.getLevel()); |
|
|
|
agencysResultDTO.setRootAgencyId(rootAgency.getAgencyId()); |
|
|
|
|
|
|
|
//3、当前登录用户所属客户,是否开启了area_code开关
|
|
|
|
agencysResultDTO.setAreaCodeSwitch(govOrgOpenFeignClient.getAreaCodeSwitch(formDTO.getCustomerId()).getData()); |
|
|
|
Result<String> govOrgRes=govOrgOpenFeignClient.getAreaCodeSwitch(formDTO.getCustomerId()); |
|
|
|
log.info("当前登录用户所属客户,是否开启了area_code开关,返参:"+ JSON.toJSONString(govOrgRes)); |
|
|
|
if(govOrgRes.success()&&StringUtils.isNotBlank(govOrgRes.getData())){ |
|
|
|
agencysResultDTO.setAreaCodeSwitch(govOrgRes.getData()); |
|
|
|
}else{ |
|
|
|
agencysResultDTO.setAreaCodeSwitch("closed"); |
|
|
|
} |
|
|
|
|
|
|
|
//4、如果当前客户不存在子客户则areaCode置为空
|
|
|
|
Result<List<String>> crmRes=operCrmOpenFeignClient.getAllSubCustomerIds(formDTO.getCustomerId()); |
|
|
|