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
33bc8333
Commit
33bc8333
authored
Dec 16, 2025
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
31462c24
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
yd-product-api/src/main/java/com/yd/product/api/service/impl/ApiProductLaunchServiceImpl.java
+7
-1
No files found.
yd-product-api/src/main/java/com/yd/product/api/service/impl/ApiProductLaunchServiceImpl.java
View file @
33bc8333
...
@@ -246,6 +246,7 @@ public class ApiProductLaunchServiceImpl implements ApiProductLaunchService {
...
@@ -246,6 +246,7 @@ public class ApiProductLaunchServiceImpl implements ApiProductLaunchService {
*/
*/
@Override
@Override
public
Result
save
(
ApiProductLaunchSaveRequest
request
)
{
public
Result
save
(
ApiProductLaunchSaveRequest
request
)
{
String
productLaunchBizId
=
""
;
if
(!
Objects
.
isNull
(
request
.
getSource
())
&&
request
.
getSource
()
==
1
)
{
if
(!
Objects
.
isNull
(
request
.
getSource
())
&&
request
.
getSource
()
==
1
)
{
//复制来源
//复制来源
//添加-产品上架类目信息
//添加-产品上架类目信息
...
@@ -266,6 +267,7 @@ public class ApiProductLaunchServiceImpl implements ApiProductLaunchService {
...
@@ -266,6 +267,7 @@ public class ApiProductLaunchServiceImpl implements ApiProductLaunchService {
productLaunch
.
setMainUrls
(!
CollectionUtils
.
isEmpty
(
apiProductLaunchDto
.
getMainUrlsList
())
?
String
.
join
(
";"
,
apiProductLaunchDto
.
getMainUrlsList
())
:
""
);
productLaunch
.
setMainUrls
(!
CollectionUtils
.
isEmpty
(
apiProductLaunchDto
.
getMainUrlsList
())
?
String
.
join
(
";"
,
apiProductLaunchDto
.
getMainUrlsList
())
:
""
);
productLaunch
.
setDetailUrls
(!
CollectionUtils
.
isEmpty
(
apiProductLaunchDto
.
getDetailUrlsList
())
?
String
.
join
(
";"
,
apiProductLaunchDto
.
getDetailUrlsList
())
:
""
);
productLaunch
.
setDetailUrls
(!
CollectionUtils
.
isEmpty
(
apiProductLaunchDto
.
getDetailUrlsList
())
?
String
.
join
(
";"
,
apiProductLaunchDto
.
getDetailUrlsList
())
:
""
);
productLaunch
.
setProjectBizIdList
(!
CollectionUtils
.
isEmpty
(
apiProductLaunchDto
.
getProjectBizIdList
())
?
String
.
join
(
";"
,
apiProductLaunchDto
.
getProjectBizIdList
())
:
""
);
productLaunch
.
setProjectBizIdList
(!
CollectionUtils
.
isEmpty
(
apiProductLaunchDto
.
getProjectBizIdList
())
?
String
.
join
(
";"
,
apiProductLaunchDto
.
getProjectBizIdList
())
:
""
);
productLaunch
.
setStatus
(
ProductCommonEnum
.
PRODUCT_LAUNCH_STATUS_DSH
.
getItemValue
());
iProductLaunchService
.
saveOrUpdate
(
productLaunch
);
iProductLaunchService
.
saveOrUpdate
(
productLaunch
);
//设置产品上架信息参数列表
//设置产品上架信息参数列表
...
@@ -274,6 +276,8 @@ public class ApiProductLaunchServiceImpl implements ApiProductLaunchService {
...
@@ -274,6 +276,8 @@ public class ApiProductLaunchServiceImpl implements ApiProductLaunchService {
apiSpeciesSettingService
.
save
(
request
.
getApiSpeciesSettingDtoList
(),
productLaunch
.
getProductLaunchBizId
());
apiSpeciesSettingService
.
save
(
request
.
getApiSpeciesSettingDtoList
(),
productLaunch
.
getProductLaunchBizId
());
//保存规格价格配置列表
//保存规格价格配置列表
apiSpeciesPriceService
.
save
(
request
.
getApiSpeciesPriceDtoList
(),
productLaunch
.
getProductLaunchBizId
());
apiSpeciesPriceService
.
save
(
request
.
getApiSpeciesPriceDtoList
(),
productLaunch
.
getProductLaunchBizId
());
productLaunchBizId
=
productLaunch
.
getProductLaunchBizId
();
}
else
{
}
else
{
//其他来源
//其他来源
ApiProductLaunchDto
apiProductLaunchDto
=
request
.
getApiProductLaunchDto
();
ApiProductLaunchDto
apiProductLaunchDto
=
request
.
getApiProductLaunchDto
();
...
@@ -293,8 +297,10 @@ public class ApiProductLaunchServiceImpl implements ApiProductLaunchService {
...
@@ -293,8 +297,10 @@ public class ApiProductLaunchServiceImpl implements ApiProductLaunchService {
apiSpeciesSettingService
.
save
(
request
.
getApiSpeciesSettingDtoList
(),
productLaunch
.
getProductLaunchBizId
());
apiSpeciesSettingService
.
save
(
request
.
getApiSpeciesSettingDtoList
(),
productLaunch
.
getProductLaunchBizId
());
//保存规格价格配置列表
//保存规格价格配置列表
apiSpeciesPriceService
.
save
(
request
.
getApiSpeciesPriceDtoList
(),
productLaunch
.
getProductLaunchBizId
());
apiSpeciesPriceService
.
save
(
request
.
getApiSpeciesPriceDtoList
(),
productLaunch
.
getProductLaunchBizId
());
productLaunchBizId
=
productLaunch
.
getProductLaunchBizId
();
}
}
return
Result
.
success
();
return
Result
.
success
(
productLaunchBizId
);
}
}
/**
/**
...
...
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