Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-product
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xingmin
yd-product
Commits
6f992ed7
Commit
6f992ed7
authored
Jan 16, 2026
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
faf72a0f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
yd-product-api/src/main/java/com/yd/product/api/service/impl/ApiRelProjectProductLaunchServiceImpl.java
+17
-0
yd-product-feign/src/main/java/com/yd/product/feign/response/relprojectproductlaunch/ApiRelProjectProductLaunchPageResponse.java
+6
-0
No files found.
yd-product-api/src/main/java/com/yd/product/api/service/impl/ApiRelProjectProductLaunchServiceImpl.java
View file @
6f992ed7
...
...
@@ -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
);
}
...
...
yd-product-feign/src/main/java/com/yd/product/feign/response/relprojectproductlaunch/ApiRelProjectProductLaunchPageResponse.java
View file @
6f992ed7
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
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment