Merge remote-tracking branch 'origin/test' into test

This commit is contained in:
Tankaikai
2024-11-05 15:40:24 +08:00
2 changed files with 6 additions and 1 deletions

View File

@@ -1055,7 +1055,9 @@ public class CartService {
priceDTO.setPackAmount(priceDTO.getPackAmount().add(cashierCart.getPackFee()));
}
priceDTO.setOriginAmount(priceDTO.getOriginAmount().add(cashierCart.getTotalAmount()));
if (!"return".equals(cashierCart.getStatus())) {
priceDTO.setOriginAmount(priceDTO.getOriginAmount().add(cashierCart.getTotalAmount()));
}
TbProductSku productSku = productSkuMapper.selectByPrimaryKey(Integer.valueOf(cashierCart.getSkuId()));
TbOrderDetail orderDetail = null;

View File

@@ -460,6 +460,9 @@ public class PayService {
}
shouldPayAmount = shouldPayAmount.subtract(userCouponVo.getDiscountAmount());
if (shouldPayAmount.compareTo(BigDecimal.ZERO) < 0) {
shouldPayAmount = new BigDecimal("0.01");
}
TbShopCoupon tbShopCoupons = mpShopCouponMapper.selectById(userCouponVo.getCouponId());
if (tbShopCoupons == null) {