feat(REQ-2545): 元素上报查询接口字段修改

This commit is contained in:
李昆鹏 2024-06-28 14:52:21 +08:00
parent b89f8c51b4
commit 93dcbda32d

View File

@ -132,11 +132,9 @@ public class ProductServiceImpl implements ProductService {
fillNonGaFeatureRelation(productVO); fillNonGaFeatureRelation(productVO);
} }
} else { } else {
ProductFeatureRelationSearchReq req = new ProductFeatureRelationSearchReq(); SaasProductModuleFeatureRelation relation = productFeatureRelationService.getOneByProductId(id);
req.setProductModuleId(id); if (Objects.nonNull(relation)) {
ApiResult<List<ProductFeatureRelationVO>> result = productFeatureRelationService.featureList(req); productVO.setRelationType(relation.getType());
if (CollectionUtils.isNotEmpty(result.getData())) {
productVO.setRelationType(result.getData().get(0).getType());
} }
} }
return ApiResult.ok(productVO); return ApiResult.ok(productVO);