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
6783e14c
Commit
6783e14c
authored
Dec 16, 2025
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
df2a39ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
yd-product-api/src/main/java/com/yd/product/api/service/impl/ApiProductLaunchServiceImpl.java
+14
-4
yd-product-feign/src/main/java/com/yd/product/feign/enums/ProductCommonEnum.java
+1
-0
No files found.
yd-product-api/src/main/java/com/yd/product/api/service/impl/ApiProductLaunchServiceImpl.java
View file @
6783e14c
...
@@ -284,8 +284,8 @@ public class ApiProductLaunchServiceImpl implements ApiProductLaunchService {
...
@@ -284,8 +284,8 @@ public class ApiProductLaunchServiceImpl implements ApiProductLaunchService {
//审核通过 -> 更新上架状态和更新租户/项目产品上架关系数据
//审核通过 -> 更新上架状态和更新租户/项目产品上架关系数据
//定时开始是否开启,开启-待开售状态 关闭-在售状态
//定时开始是否开启,开启-待开售状态 关闭-在售状态
if
(
NoYesEnum
.
YES
.
getItemValue
().
equals
(
productLaunch
.
getIsTiming
()))
{
if
(
NoYesEnum
.
YES
.
getItemValue
().
equals
(
productLaunch
.
getIsTiming
()))
{
//定时开始是否开启,开启-
待开
售状态
//定时开始是否开启,开启-
预
售状态
productLaunch
.
setStatus
(
ProductCommonEnum
.
PRODUCT_LAUNCH_STATUS_
DK
S
.
getItemValue
());
productLaunch
.
setStatus
(
ProductCommonEnum
.
PRODUCT_LAUNCH_STATUS_
Y
S
.
getItemValue
());
}
else
if
(
NoYesEnum
.
NO
.
getItemValue
().
equals
(
productLaunch
.
getIsTiming
())){
}
else
if
(
NoYesEnum
.
NO
.
getItemValue
().
equals
(
productLaunch
.
getIsTiming
())){
//关闭-在售状态
//关闭-在售状态
productLaunch
.
setStatus
(
ProductCommonEnum
.
PRODUCT_LAUNCH_STATUS_ZS
.
getItemValue
());
productLaunch
.
setStatus
(
ProductCommonEnum
.
PRODUCT_LAUNCH_STATUS_ZS
.
getItemValue
());
...
@@ -329,8 +329,18 @@ public class ApiProductLaunchServiceImpl implements ApiProductLaunchService {
...
@@ -329,8 +329,18 @@ public class ApiProductLaunchServiceImpl implements ApiProductLaunchService {
//校验产品上架信息是否存在
//校验产品上架信息是否存在
Result
<
ProductLaunch
>
result
=
checkProductLaunchIsExist
(
request
.
getProductLaunchBizId
());
Result
<
ProductLaunch
>
result
=
checkProductLaunchIsExist
(
request
.
getProductLaunchBizId
());
ProductLaunch
productLaunch
=
result
.
getData
();
ProductLaunch
productLaunch
=
result
.
getData
();
if
(
ProductCommonEnum
.
PRODUCT_LAUNCH_STATUS_SJ
.
getItemValue
().
equals
(
request
.
getStatus
()))
{
productLaunch
.
setStatus
(
request
.
getStatus
());
//上架 -> 待审核
productLaunch
.
setStatus
(
ProductCommonEnum
.
PRODUCT_LAUNCH_STATUS_DSH
.
getItemValue
());
}
else
if
(
ProductCommonEnum
.
PRODUCT_LAUNCH_STATUS_XJ
.
getItemValue
().
equals
(
request
.
getStatus
()))
{
//下架 -> 下架
productLaunch
.
setStatus
(
ProductCommonEnum
.
PRODUCT_LAUNCH_STATUS_DSH
.
getItemValue
());
//下架要清空租户/项目产品上架关系数据
//根据产品业务ID删除项目产品关系
iRelProjectProductLaunchService
.
delByProductLaunchBizId
(
productLaunch
.
getProductLaunchBizId
());
//根据产品业务ID删除租户产品关系
iRelTenantProductLaunchService
.
delByProductLaunchBizId
(
productLaunch
.
getProductLaunchBizId
());
}
iProductLaunchService
.
saveOrUpdate
(
productLaunch
);
iProductLaunchService
.
saveOrUpdate
(
productLaunch
);
return
Result
.
success
();
return
Result
.
success
();
}
}
...
...
yd-product-feign/src/main/java/com/yd/product/feign/enums/ProductCommonEnum.java
View file @
6783e14c
...
@@ -14,6 +14,7 @@ public enum ProductCommonEnum {
...
@@ -14,6 +14,7 @@ public enum ProductCommonEnum {
PRODUCT_LAUNCH_STATUS_XJ
(
"下架"
,
"XJ"
),
PRODUCT_LAUNCH_STATUS_XJ
(
"下架"
,
"XJ"
),
PRODUCT_LAUNCH_STATUS_YS
(
"预售"
,
"YS"
),
PRODUCT_LAUNCH_STATUS_YS
(
"预售"
,
"YS"
),
PRODUCT_LAUNCH_STATUS_DKS
(
"待开售"
,
"DKS"
),
PRODUCT_LAUNCH_STATUS_DKS
(
"待开售"
,
"DKS"
),
PRODUCT_LAUNCH_STATUS_SJ
(
"上架"
,
"SJ"
),
//审核操作状态
//审核操作状态
APPROVAL_STATUS_TG
(
"通过"
,
"TG"
),
APPROVAL_STATUS_TG
(
"通过"
,
"TG"
),
...
...
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