feat(REQ-2186): 产品page接口返回数据顺序调整

This commit is contained in:
李昆鹏 2024-05-10 18:06:26 +08:00
parent 0b0ea38794
commit ae9b8cc310
2 changed files with 9 additions and 1 deletions

View File

@ -203,5 +203,10 @@ public class ProductVO {
* 政务端featureResourceId
*/
private Long governmentFeatureResourceId;
/**
* 功能资源名称
*/
private String featureResourceName;
}
}

View File

@ -367,7 +367,10 @@ public class ProductServiceImpl implements ProductService {
List<Long> featureIds = result.getData().stream().map(ProductFeatureRelationVO::getFeatureId).collect(Collectors.toList());
List<SaasFeatureResource> featureResources = saasFeatureResourceService.listByParentIdAndTerminalAndIds(0L, TerminalInfo.NT_PC_GA_GENERAL, featureIds);
if (CollectionUtil.isNotEmpty(featureResources)) {
product.setFeatureScope(ProductVO.FeatureScope.builder().governmentFeatureResourceId(featureResources.get(0).getId()).build());
product.setFeatureScope(ProductVO.FeatureScope.builder()
.governmentFeatureResourceId(featureResources.get(0).getId())
.featureResourceName(featureResources.get(0).getFeatureName())
.build());
}
}
}