|
|
@ -358,12 +358,12 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public List<ProjectCategoryDictResultDTO> getCategoryDict(TokenDto tokenDto) { |
|
|
|
public List<ProjectCategoryDictResultDTO> getCategoryDict(String customerId) { |
|
|
|
List<ProjectCategoryDictResultDTO> result = new ArrayList<>(); |
|
|
|
Result<String> parentCustomerId = operCrmOpenFeignClient.getExternalAndParentCustomerId(tokenDto.getCustomerId()); |
|
|
|
Result<String> parentCustomerId = operCrmOpenFeignClient.getExternalAndParentCustomerId(customerId); |
|
|
|
if (!parentCustomerId.success() && null == parentCustomerId.getData()) { |
|
|
|
logger.warn(String.format("调用%s服务查询外部客户的 父级客户ID 失败,入参%s", ServiceConstant.OPER_CRM_SERVER, |
|
|
|
JSON.toJSONString(tokenDto.getCustomerId()))); |
|
|
|
JSON.toJSONString(customerId))); |
|
|
|
return result; |
|
|
|
} |
|
|
|
CustomerCategoryDTO argDto = new CustomerCategoryDTO(); |
|
|
@ -373,7 +373,7 @@ public class ProjectServiceImpl implements ProjectService { |
|
|
|
Result<List<ProjectCategoryDictResultDTO>> parentCategoryDict = govIssueOpenFeignClient.getCustomerCategoryDict(argDto); |
|
|
|
if (!parentCategoryDict.success()) { |
|
|
|
logger.warn(String.format("调用%s服务查询当前客户的父客户下,项目分类字典失败,入参%s", ServiceConstant.GOV_ISSUE_SERVER, |
|
|
|
JSON.toJSONString(tokenDto.getCustomerId()))); |
|
|
|
JSON.toJSONString(customerId))); |
|
|
|
} else { |
|
|
|
result = parentCategoryDict.getData(); |
|
|
|
// 获取客户二级分类
|
|
|
|