fix: 会员价修改

This commit is contained in:
张松 2024-11-23 11:08:20 +08:00
parent 0cd809b07f
commit 39ed73a388
1 changed files with 1 additions and 3 deletions

View File

@ -1499,9 +1499,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
ArrayList<Integer> cartIdList = new ArrayList<>();
// 订单总价
for (TbCashierCart tbCashierCart : cartInfoDTO.getCashierCarts()) {
if (shopUser != null) {
tbCashierCart.setIsMember(!shopEatTypeInfoDTO.isMemberPrice() ? 0 : shopUser.getIsVip() == 1 ? 0 : 1);
}
tbCashierCart.setIsMember(!shopEatTypeInfoDTO.isMemberPrice() ? 0 : shopUser == null ? 0 : 1);
tbCashierCart.resetTotalAmount();
if (tbCashierCart.getOrderId() != null) {