清空购物车删除缓存

This commit is contained in:
2024-09-27 15:39:17 +08:00
parent c981268289
commit 9bfcb767f4

View File

@@ -146,9 +146,8 @@ public class ProductService {
TbOrderInfo order = getCurrentOrder(shopEatTypeInfoDTO, code, shopInfo.getId()); TbOrderInfo order = getCurrentOrder(shopEatTypeInfoDTO, code, shopInfo.getId());
if (tbShopTable != null) { if (tbShopTable != null) {
tbShopTable.setOrderId(order == null ? null : order.getId()); tbShopTable.setOrderId(order == null ? null : order.getId());
TbCashierCart seatCartInfo = getSeatCartInfo(shopId, tbShopTable.getQrcode(), Integer.valueOf(userId), shopEatTypeInfoDTO); TbCashierCart seatCartInfo = getSeatCartInfo(tbShopTable.getShopId(), tbShopTable.getQrcode(), Integer.valueOf(userId), shopEatTypeInfoDTO);
tbShopTable.setChoseCount(seatCartInfo != null && (seatCartInfo.getNumber() != null)); tbShopTable.setChoseCount(seatCartInfo != null && (seatCartInfo.getNumber() != null));
} }
concurrentMap.put("shopTableInfo", tbShopTable == null ? "" : tbShopTable); concurrentMap.put("shopTableInfo", tbShopTable == null ? "" : tbShopTable);