fix: 打包赠送修改

This commit is contained in:
SongZhang 2024-10-30 17:06:13 +08:00
parent bae22532d1
commit 07990a0a96
1 changed files with 1 additions and 1 deletions

View File

@ -429,7 +429,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
}
if (updateCartDTO.getIsGift() != null) {
tbCashierCart.setTotalAmount(updateCartDTO.getIsGift() ? BigDecimal.ZERO : tbCashierCart.getTotalAmount());
tbCashierCart.setTotalAmount(updateCartDTO.getIsGift() ? tbCashierCart.getPackFee() : tbCashierCart.getTotalAmount());
tbCashierCart.setIsGift(updateCartDTO.getIsGift() ? "true" : "false");
}