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
f6e14a01
Commit
f6e14a01
authored
Aug 13, 2024
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-fix' into dev
parents
d7d86440
fc813808
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 @
f6e14a01
...
@@ -1259,7 +1259,7 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
...
@@ -1259,7 +1259,7 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
//没有价格信息不继续后面的处理
//没有价格信息不继续后面的处理
if
(!
hasPrice
)
{
if
(!
hasPrice
)
{
zTest3
m
=
new
zTest3
();
zTest3
m
=
new
zTest3
();
m
.
setTestname
(
"没有价格信息,不后续处理"
);
m
.
setTestname
(
"没有价格信息,不后续处理"
);
m
.
setCreatedate
(
new
Date
());
m
.
setCreatedate
(
new
Date
());
zTestMapper
.
insert
(
m
);
zTestMapper
.
insert
(
m
);
...
@@ -1297,10 +1297,8 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
...
@@ -1297,10 +1297,8 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
//ProductPriceExceptionHandleListener 监听
//ProductPriceExceptionHandleListener 监听
handleData
.
setNeedHandleList
(
needHandleList
);
handleData
.
setNeedHandleList
(
needHandleList
);
applicationContext
.
publishEvent
(
handleData
);
applicationContext
.
publishEvent
(
handleData
);
}
}
else
{
else
zTest3
m
=
new
zTest3
();
{
zTest3
m
=
new
zTest3
();
m
.
setTestname
(
"needHandleList 为空"
);
m
.
setTestname
(
"needHandleList 为空"
);
m
.
setCreatedate
(
new
Date
());
m
.
setCreatedate
(
new
Date
());
zTestMapper
.
insert
(
m
);
zTestMapper
.
insert
(
m
);
...
@@ -3020,10 +3018,13 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
...
@@ -3020,10 +3018,13 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
private
void
checkAndUpdateStepToMainPrice
(
ProductPriceDO
productPrice
,
ProductPriceReqBaseVO
productPriceStepBaseVO
)
{
private
void
checkAndUpdateStepToMainPrice
(
ProductPriceDO
productPrice
,
ProductPriceReqBaseVO
productPriceStepBaseVO
)
{
checkStepPrice
(
productPriceStepBaseVO
);
checkStepPrice
(
productPriceStepBaseVO
);
if
(
productPrice
.
getStepPrice
()
==
1
)
{
// 只有阶梯定价才需要执行下面的逻辑
updateStepToMainPriceAir
(
productPrice
,
productPriceStepBaseVO
.
getFreightPriceStepList
(),
PriceTypeEnum
.
FREIGHT
);
updateStepToMainPriceAir
(
productPrice
,
productPriceStepBaseVO
.
getFreightPriceStepList
(),
PriceTypeEnum
.
FREIGHT
);
updateStepToMainPriceAir
(
productPrice
,
productPriceStepBaseVO
.
getClearancePriceStepList
(),
PriceTypeEnum
.
CLEARANCE
);
updateStepToMainPriceAir
(
productPrice
,
productPriceStepBaseVO
.
getClearancePriceStepList
(),
PriceTypeEnum
.
CLEARANCE
);
updateStepToMainPriceAir
(
productPrice
,
productPriceStepBaseVO
.
getFullPriceStepList
(),
PriceTypeEnum
.
FULL_PRICE
);
updateStepToMainPriceAir
(
productPrice
,
productPriceStepBaseVO
.
getFullPriceStepList
(),
PriceTypeEnum
.
FULL_PRICE
);
}
}
}
private
void
updateStepToMainPriceAir
(
ProductPriceDO
productPrice
,
List
<
ProductPriceStepDO
>
priceStepList
,
PriceTypeEnum
priceTypeEnum
)
{
private
void
updateStepToMainPriceAir
(
ProductPriceDO
productPrice
,
List
<
ProductPriceStepDO
>
priceStepList
,
PriceTypeEnum
priceTypeEnum
)
{
if
(
CollectionUtil
.
isNotEmpty
(
priceStepList
))
{
if
(
CollectionUtil
.
isNotEmpty
(
priceStepList
))
{
...
@@ -3446,7 +3447,8 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
...
@@ -3446,7 +3447,8 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
in
(
ProductPriceDO:
:
getId
,
ids
));
in
(
ProductPriceDO:
:
getId
,
ids
));
if
(
productPriceDOList
.
size
()
>
0
)
{
if
(
productPriceDOList
.
size
()
>
0
)
{
productPriceDOList
.
forEach
(
price
->
{
for
(
ProductPriceDO
price
:
productPriceDOList
)
{
ProductPriceAirCreateReqVO
createReqVO
=
new
ProductPriceAirCreateReqVO
();
ProductPriceAirCreateReqVO
createReqVO
=
new
ProductPriceAirCreateReqVO
();
BeanUtils
.
copyProperties
(
price
,
createReqVO
);
BeanUtils
.
copyProperties
(
price
,
createReqVO
);
...
@@ -3619,7 +3621,7 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
...
@@ -3619,7 +3621,7 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
warehouseLineList
,
warehouseLineList
,
productList
,
productList
,
price
);
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