Commit 6f992ed7 by zhangxingmin

push

parent faf72a0f
......@@ -55,6 +55,14 @@ public class ApiRelProjectProductLaunchServiceImpl implements ApiRelProjectProdu
IPage<ApiRelProjectProductLaunchPageResponse> iPage = iRelProjectProductLaunchService.page(page, request);
if (!CollectionUtils.isEmpty(iPage.getRecords())) {
List<ApiRelProjectProductLaunchPageResponse> responses = iPage.getRecords();
List<String> productLaunchBizIdList = responses.stream()
.map(ApiRelProjectProductLaunchPageResponse::getProductLaunchBizId)
.collect(Collectors.toList());
//查询-对象分类关系列表
ApiRelObjectCategoryQueryRequest queryRequest = new ApiRelObjectCategoryQueryRequest();
queryRequest.setObjectBizIdList(productLaunchBizIdList);
Result<List<ApiRelObjectCategoryQueryResponse>> result = apiRelObjectCategoryFeignClient.query(queryRequest);
List<ApiRelObjectCategoryQueryResponse> categoryQueryResponses = result.getData();
for (ApiRelProjectProductLaunchPageResponse response : responses) {
//设置的产品上架信息的参数列表
List<ApiAttributeSettingDto> apiAttributeSettingDtoList = apiAttributeSettingService.queryAttributeSettingDtoList(response.getProductLaunchBizId());
......@@ -68,6 +76,15 @@ public class ApiRelProjectProductLaunchServiceImpl implements ApiRelProjectProdu
//规格价格配置列表
List<ApiSpeciesPriceDto> apiSpeciesPriceDtoList = apiSpeciesPriceService.querySpeciesPriceDtoList(response.getProductLaunchBizId());
response.setApiSpeciesPriceDtoList(apiSpeciesPriceDtoList);
//设置分类列表(产品险种列表)
if (!CollectionUtils.isEmpty(categoryQueryResponses)) {
List<ApiRelObjectCategoryQueryResponse> categoryQueryResponseList = categoryQueryResponses
.stream()
.filter(dto -> dto.getObjectBizId().equals(response.getProductLaunchBizId()))
.collect(Collectors.toList());
response.setCategoryQueryResponseList(categoryQueryResponseList);
}
}
iPage.setRecords(responses);
}
......
package com.yd.product.feign.response.relprojectproductlaunch;
import com.yd.base.feign.response.relobjectcategory.ApiRelObjectCategoryQueryResponse;
import com.yd.product.feign.dto.ApiSpeciesPriceDto;
import com.yd.product.feign.dto.ApiSpeciesTypeDto;
import com.yd.product.feign.response.productlaunch.ApiAttributeSettingDto;
......@@ -83,4 +84,9 @@ public class ApiRelProjectProductLaunchPageResponse {
* 规格价格配置列表
*/
private List<ApiSpeciesPriceDto> apiSpeciesPriceDtoList;
/**
* 产品上架绑定的分类列表
*/
private List<ApiRelObjectCategoryQueryResponse> categoryQueryResponseList;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment