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
352eb7be
Commit
352eb7be
authored
Nov 28, 2025
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
ed8debfd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletions
+20
-1
yd-product-api/src/main/java/com/yd/product/api/service/impl/ApiProductLaunchServiceImpl.java
+13
-0
yd-product-feign/src/main/java/com/yd/product/feign/dto/ApiProductLaunchDto.java
+6
-0
yd-product-service/src/main/java/com/yd/product/service/utils/MyBatisPlusCodeGenerator.java
+1
-1
No files found.
yd-product-api/src/main/java/com/yd/product/api/service/impl/ApiProductLaunchServiceImpl.java
View file @
352eb7be
...
...
@@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yd.base.feign.client.relobjectcategory.ApiRelObjectCategoryFeignClient
;
import
com.yd.base.feign.request.relobjectcategory.ApiRelObjectCategoryListAddRequest
;
import
com.yd.base.feign.request.relobjectcategory.ApiRelObjectCategoryQueryRequest
;
import
com.yd.base.feign.response.relobjectcategory.ApiRelObjectCategoryQueryResponse
;
import
com.yd.common.enums.CommonEnum
;
import
com.yd.common.enums.NoYesEnum
;
import
com.yd.common.exception.BusinessException
;
...
...
@@ -151,6 +153,17 @@ public class ApiProductLaunchServiceImpl implements ApiProductLaunchService {
apiProductLaunchDto
.
setDetailUrlsList
(
StringUtils
.
isNotBlank
(
productLaunch
.
getDetailUrls
())
?
Arrays
.
asList
(
productLaunch
.
getDetailUrls
().
split
(
";"
).
clone
())
:
new
ArrayList
<>());
//主图url列表
apiProductLaunchDto
.
setMainUrlsList
(
StringUtils
.
isNotBlank
(
productLaunch
.
getMainUrls
())
?
Arrays
.
asList
(
productLaunch
.
getMainUrls
().
split
(
";"
).
clone
())
:
new
ArrayList
<>());
//获取绑定的分类ID列表
ApiRelObjectCategoryQueryRequest
request
=
new
ApiRelObjectCategoryQueryRequest
();
List
<
String
>
objectBizIdList
=
new
ArrayList
<>();
objectBizIdList
.
add
(
productLaunchBizId
);
request
.
setObjectBizIdList
(
objectBizIdList
);
Result
<
List
<
ApiRelObjectCategoryQueryResponse
>>
listResult
=
apiRelObjectCategoryFeignClient
.
query
(
request
);
if
(!
CollectionUtils
.
isEmpty
(
listResult
.
getData
()))
{
List
<
String
>
categoryBizIdList
=
listResult
.
getData
().
stream
().
map
(
ApiRelObjectCategoryQueryResponse:
:
getCategoryBizId
).
collect
(
Collectors
.
toList
());
apiProductLaunchDto
.
setCategoryBizIdList
(
categoryBizIdList
);
}
response
.
setApiProductLaunchDto
(
apiProductLaunchDto
);
//设置的产品上架信息的参数列表
...
...
yd-product-feign/src/main/java/com/yd/product/feign/dto/ApiProductLaunchDto.java
View file @
352eb7be
...
...
@@ -3,6 +3,7 @@ package com.yd.product.feign.dto;
import
lombok.Data
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotEmpty
;
import
java.time.LocalDateTime
;
import
java.util.List
;
...
...
@@ -85,4 +86,9 @@ public class ApiProductLaunchDto {
* 上架到对应的项目列表
*/
private
List
<
String
>
projectBizIdList
;
/**
* 分类表唯一业务ID列表
*/
private
List
<
String
>
categoryBizIdList
;
}
yd-product-service/src/main/java/com/yd/product/service/utils/MyBatisPlusCodeGenerator.java
View file @
352eb7be
...
...
@@ -21,7 +21,7 @@ public class MyBatisPlusCodeGenerator {
})
.
strategyConfig
(
builder
->
{
builder
.
addInclude
(
"
product_launch
"
"
announcement_commission_ratio
"
)
.
entityBuilder
()
...
...
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