Commit 307f3775 authored by 332784038@qq.com's avatar 332784038@qq.com

阶梯全包价个复制bug修复

parent 4ec49d61
...@@ -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())) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment