Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-api-boot-master
Commits
fc813808
Commit
fc813808
authored
Aug 13, 2024
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
复制价格修改业务逻辑
parent
4fa32e12
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
ProductPriceServiceImpl.java
...product/service/product/impl/ProductPriceServiceImpl.java
+12
-10
No files found.
yudao-module-product/yudao-module-product-core/src/main/java/cn/iocoder/yudao/module/product/service/product/impl/ProductPriceServiceImpl.java
View file @
fc813808
...
...
@@ -1259,7 +1259,7 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
//没有价格信息不继续后面的处理
if
(!
hasPrice
)
{
zTest3
m
=
new
zTest3
();
zTest3
m
=
new
zTest3
();
m
.
setTestname
(
"没有价格信息,不后续处理"
);
m
.
setCreatedate
(
new
Date
());
zTestMapper
.
insert
(
m
);
...
...
@@ -1297,10 +1297,8 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
//ProductPriceExceptionHandleListener 监听
handleData
.
setNeedHandleList
(
needHandleList
);
applicationContext
.
publishEvent
(
handleData
);
}
else
{
zTest3
m
=
new
zTest3
();
}
else
{
zTest3
m
=
new
zTest3
();
m
.
setTestname
(
"needHandleList 为空"
);
m
.
setCreatedate
(
new
Date
());
zTestMapper
.
insert
(
m
);
...
...
@@ -3020,10 +3018,13 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
private
void
checkAndUpdateStepToMainPrice
(
ProductPriceDO
productPrice
,
ProductPriceReqBaseVO
productPriceStepBaseVO
)
{
checkStepPrice
(
productPriceStepBaseVO
);
if
(
productPrice
.
getStepPrice
()
==
1
)
{
// 只有阶梯定价才需要执行下面的逻辑
updateStepToMainPriceAir
(
productPrice
,
productPriceStepBaseVO
.
getFreightPriceStepList
(),
PriceTypeEnum
.
FREIGHT
);
updateStepToMainPriceAir
(
productPrice
,
productPriceStepBaseVO
.
getClearancePriceStepList
(),
PriceTypeEnum
.
CLEARANCE
);
updateStepToMainPriceAir
(
productPrice
,
productPriceStepBaseVO
.
getFullPriceStepList
(),
PriceTypeEnum
.
FULL_PRICE
);
}
}
private
void
updateStepToMainPriceAir
(
ProductPriceDO
productPrice
,
List
<
ProductPriceStepDO
>
priceStepList
,
PriceTypeEnum
priceTypeEnum
)
{
if
(
CollectionUtil
.
isNotEmpty
(
priceStepList
))
{
...
...
@@ -3446,7 +3447,8 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
in
(
ProductPriceDO:
:
getId
,
ids
));
if
(
productPriceDOList
.
size
()
>
0
)
{
productPriceDOList
.
forEach
(
price
->
{
for
(
ProductPriceDO
price
:
productPriceDOList
)
{
ProductPriceAirCreateReqVO
createReqVO
=
new
ProductPriceAirCreateReqVO
();
BeanUtils
.
copyProperties
(
price
,
createReqVO
);
...
...
@@ -3619,7 +3621,7 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
warehouseLineList
,
productList
,
price
);
}
);
}
}
...
...
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