|
@@ -290,7 +290,7 @@ public class NewOrderService extends CrudService<NewOrderDao, NewOrder> {
|
|
//凑单金额
|
|
//凑单金额
|
|
AtomicReference<BigDecimal> poolAmount = new AtomicReference<>(BigDecimal.ZERO);
|
|
AtomicReference<BigDecimal> poolAmount = new AtomicReference<>(BigDecimal.ZERO);
|
|
orderProducts.forEach(o -> {
|
|
orderProducts.forEach(o -> {
|
|
- if (o.getDiscount() >= 100d && 0 == o.getSvipPriceFlag()) {
|
|
|
|
|
|
+ if (o.getDiscount() >= 100d && (null == o.getSvipPriceFlag() || 0 == o.getSvipPriceFlag())) {
|
|
CmPromotion cmPromotion = cmPromotionDao.findProductPromotion(o.getShopID().toString(), o.getProductID().longValue());
|
|
CmPromotion cmPromotion = cmPromotionDao.findProductPromotion(o.getShopID().toString(), o.getProductID().longValue());
|
|
if (cmPromotion != null && cmPromotion.getId().equals(promotion.getId())) {
|
|
if (cmPromotion != null && cmPromotion.getId().equals(promotion.getId())) {
|
|
poolAmount.set(MathUtil.add(poolAmount, o.getTotalFee()));
|
|
poolAmount.set(MathUtil.add(poolAmount, o.getTotalFee()));
|
|
@@ -456,6 +456,9 @@ public class NewOrderService extends CrudService<NewOrderDao, NewOrder> {
|
|
if (orderProduct.getLadderPriceFlag() == null) {
|
|
if (orderProduct.getLadderPriceFlag() == null) {
|
|
orderProduct.setLadderPriceFlag(0);
|
|
orderProduct.setLadderPriceFlag(0);
|
|
}
|
|
}
|
|
|
|
+ if (orderProduct.getSvipPriceFlag() == null) {
|
|
|
|
+ orderProduct.setSvipPriceFlag(0);
|
|
|
|
+ }
|
|
newOrderProductDao.insert(orderProduct);
|
|
newOrderProductDao.insert(orderProduct);
|
|
//插入阶梯价格列表
|
|
//插入阶梯价格列表
|
|
insertLadderPrice(orderProduct);
|
|
insertLadderPrice(orderProduct);
|