fix: 赠送重置改价金额
This commit is contained in:
@@ -483,6 +483,11 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
||||
if (updateCartDTO.getIsGift() != null) {
|
||||
tbCashierCart.setTotalAmount(updateCartDTO.getIsGift() ? tbCashierCart.getPackFee() : tbCashierCart.getTotalAmount());
|
||||
tbCashierCart.setIsGift(updateCartDTO.getIsGift() ? "true" : "false");
|
||||
tbCashierCart.setDiscountSaleAmount(BigDecimal.ZERO);
|
||||
if (updateCartDTO.getIsGift()) {
|
||||
tbCashierCart.setDiscountSaleNote("");
|
||||
tbCashierCart.resetTotalAmount();
|
||||
}
|
||||
}
|
||||
|
||||
tbCashierCart.setTotalNumber(updateCartDTO.getNum());
|
||||
|
||||
Reference in New Issue
Block a user