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);
}
} else {
ProductFeatureRelationSearchReq req = new ProductFeatureRelationSearchReq();
req.setProductModuleId(id);
ApiResult<List<ProductFeatureRelationVO>> result = productFeatureRelationService.featureList(req);
if (CollectionUtils.isNotEmpty(result.getData())) {
productVO.setRelationType(result.getData().get(0).getType());
SaasProductModuleFeatureRelation relation = productFeatureRelationService.getOneByProductId(id);
if (Objects.nonNull(relation)) {
productVO.setRelationType(relation.getType());
}
}
return ApiResult.ok(productVO);