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
307f3775
Commit
307f3775
authored
Aug 22, 2024
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
阶梯全包价个复制bug修复
parent
4ec49d61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
23 deletions
+23
-23
ProductPriceServiceImpl.java
...product/service/product/impl/ProductPriceServiceImpl.java
+23
-23
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 @
307f3775
...
@@ -3468,29 +3468,29 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
...
@@ -3468,29 +3468,29 @@ public class ProductPriceServiceImpl extends AbstractService<ProductPriceMapper,
ProductPriceStepDO
clear
=
new
ProductPriceStepDO
();
ProductPriceStepDO
clear
=
new
ProductPriceStepDO
();
if
(
createReqVO
.
getPriceType
()
==
1
)
{
if
(
createReqVO
.
getPriceType
()
==
1
)
{
if
(
CollectionUtil
.
isNotEmpty
(
respVO
.
getFullPriceStepList
()))
{
if
(
CollectionUtil
.
isNotEmpty
(
respVO
.
getFullPriceStepList
()))
{
respVO
.
getFullPriceStepList
().
forEach
(
pack
->
{
//
respVO.getFullPriceStepList().forEach(pack -> {
ProductPriceStepDO
priceStepDO
=
new
ProductPriceStepDO
();
//
ProductPriceStepDO priceStepDO = new ProductPriceStepDO();
BeanUtils
.
copyProperties
(
pack
,
priceStepDO
);
//
BeanUtils.copyProperties(pack, priceStepDO);
priceStepDO
.
setId
(
null
);
//
priceStepDO.setId(null);
priceStepDO
.
setStartNum
(
BigDecimal
.
valueOf
(
0
));
//
priceStepDO.setStartNum(BigDecimal.valueOf(0));
priceStepDO
.
setEndNum
(
BigDecimal
.
valueOf
(
0
));
//
priceStepDO.setEndNum(BigDecimal.valueOf(0));
priceStepDO
.
setWeightUnit
(
price
.
getTransportPriceUnit
());
//
priceStepDO.setWeightUnit(price.getTransportPriceUnit());
priceStepDO
.
setAllPrice
(
respVO
.
getAllPrice
());
//
priceStepDO.setAllPrice(respVO.getAllPrice());
priceStepDO
.
setAllPriceUnit
(
respVO
.
getAllPriceUnit
());
//
priceStepDO.setAllPriceUnit(respVO.getAllPriceUnit());
priceStepDO
.
setAllVolumeUnit
(
respVO
.
getAllVolumeUnit
());
//
priceStepDO.setAllVolumeUnit(respVO.getAllVolumeUnit());
if
(
CollectionUtil
.
isNotEmpty
(
respVO
.
getSpecialList
()))
{
//
if (CollectionUtil.isNotEmpty(respVO.getSpecialList())) {
List
<
ProductPriceStepSpecialDO
>
specialList
=
new
ArrayList
<>();
//
List<ProductPriceStepSpecialDO> specialList = new ArrayList<>();
respVO
.
getSpecialList
().
forEach
(
sp
->
{
//
respVO.getSpecialList().forEach(sp -> {
ProductPriceStepSpecialDO
specialDO
=
new
ProductPriceStepSpecialDO
();
//
ProductPriceStepSpecialDO specialDO = new ProductPriceStepSpecialDO();
BeanUtils
.
copyProperties
(
sp
,
specialDO
);
//
BeanUtils.copyProperties(sp, specialDO);
specialDO
.
setId
(
null
);
//
specialDO.setId(null);
specialList
.
add
(
specialDO
);
//
specialList.add(specialDO);
});
//
});
priceStepDO
.
setSpecialList
(
specialList
);
//
priceStepDO.setSpecialList(specialList);
}
//
}
fullPriceStepList
.
add
(
priceStepDO
);
//
fullPriceStepList.add(priceStepDO);
});
//
});
createReqVO
.
setFullPriceStepList
(
fullPriceStepList
);
createReqVO
.
setFullPriceStepList
(
respVO
.
getFullPriceStepList
()
);
}
}
}
else
{
}
else
{
// if (CollectionUtil.isEmpty(respVO.getFreightPriceStepList())) {
// if (CollectionUtil.isEmpty(respVO.getFreightPriceStepList())) {
...
...
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