Merge branch 'refs/heads/dev' into test

This commit is contained in:
SongZhang 2024-10-30 17:06:36 +08:00
commit a8d59c1308
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");
}