扣点问题
This commit is contained in:
parent
3bbde9b5a3
commit
94f62d3fe2
|
|
@ -286,6 +286,7 @@ public class GoodsController extends BaseController {
|
||||||
goodsStandards.stream().forEach(goodsStandard -> {
|
goodsStandards.stream().forEach(goodsStandard -> {
|
||||||
if (StringUtils.isEmpty(goodsStandard.getGoodsUnit())) {
|
if (StringUtils.isEmpty(goodsStandard.getGoodsUnit())) {
|
||||||
goodsStandard.setGoodsUnit(result.getGoodsUnit());
|
goodsStandard.setGoodsUnit(result.getGoodsUnit());
|
||||||
|
}
|
||||||
BigDecimal finalPrice = BigDecimal.ZERO;
|
BigDecimal finalPrice = BigDecimal.ZERO;
|
||||||
// 获取规格的扣点
|
// 获取规格的扣点
|
||||||
DeptGoodsCategory deptGoodsCategory = deptGoodsCategoryService.get(goodsStandard.getDeptGoodsCategoryId());
|
DeptGoodsCategory deptGoodsCategory = deptGoodsCategoryService.get(goodsStandard.getDeptGoodsCategoryId());
|
||||||
|
|
@ -302,7 +303,6 @@ public class GoodsController extends BaseController {
|
||||||
finalPrice = finalPrice.add(goodsStandard.getExtMoney());
|
finalPrice = finalPrice.add(goodsStandard.getExtMoney());
|
||||||
}
|
}
|
||||||
goodsStandard.setFinalPrice(finalPrice);
|
goodsStandard.setFinalPrice(finalPrice);
|
||||||
}
|
|
||||||
});
|
});
|
||||||
result.setGoodsStandardList(goodsStandards);
|
result.setGoodsStandardList(goodsStandards);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue