feat(REQ-2186): 产品page接口返回数据顺序调整
This commit is contained in:
parent
0b0ea38794
commit
ae9b8cc310
@ -203,5 +203,10 @@ public class ProductVO {
|
||||
* 政务端featureResourceId
|
||||
*/
|
||||
private Long governmentFeatureResourceId;
|
||||
|
||||
/**
|
||||
* 功能资源名称
|
||||
*/
|
||||
private String featureResourceName;
|
||||
}
|
||||
}
|
||||
|
||||
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user