Merge remote-tracking branch 'origin/test' into test
This commit is contained in:
@@ -1055,7 +1055,9 @@ public class CartService {
|
|||||||
priceDTO.setPackAmount(priceDTO.getPackAmount().add(cashierCart.getPackFee()));
|
priceDTO.setPackAmount(priceDTO.getPackAmount().add(cashierCart.getPackFee()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!"return".equals(cashierCart.getStatus())) {
|
||||||
priceDTO.setOriginAmount(priceDTO.getOriginAmount().add(cashierCart.getTotalAmount()));
|
priceDTO.setOriginAmount(priceDTO.getOriginAmount().add(cashierCart.getTotalAmount()));
|
||||||
|
}
|
||||||
|
|
||||||
TbProductSku productSku = productSkuMapper.selectByPrimaryKey(Integer.valueOf(cashierCart.getSkuId()));
|
TbProductSku productSku = productSkuMapper.selectByPrimaryKey(Integer.valueOf(cashierCart.getSkuId()));
|
||||||
TbOrderDetail orderDetail = null;
|
TbOrderDetail orderDetail = null;
|
||||||
|
|||||||
@@ -460,6 +460,9 @@ public class PayService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
shouldPayAmount = shouldPayAmount.subtract(userCouponVo.getDiscountAmount());
|
shouldPayAmount = shouldPayAmount.subtract(userCouponVo.getDiscountAmount());
|
||||||
|
if (shouldPayAmount.compareTo(BigDecimal.ZERO) < 0) {
|
||||||
|
shouldPayAmount = new BigDecimal("0.01");
|
||||||
|
}
|
||||||
|
|
||||||
TbShopCoupon tbShopCoupons = mpShopCouponMapper.selectById(userCouponVo.getCouponId());
|
TbShopCoupon tbShopCoupons = mpShopCouponMapper.selectById(userCouponVo.getCouponId());
|
||||||
if (tbShopCoupons == null) {
|
if (tbShopCoupons == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user