就餐模式获取修改
This commit is contained in:
@@ -172,6 +172,10 @@ public class CartService {
|
||||
BigDecimal amount = BigDecimal.ZERO;
|
||||
JSONArray array = new JSONArray();
|
||||
|
||||
ShopEatTypeInfoDTO shopEatTypeInfoDTO = shopUtils.getEatModel(tableId, shopId);
|
||||
if (!shopEatTypeInfoDTO.isOpenDineIn() && shopEatTypeInfoDTO.isOpenTakeout()) {
|
||||
tableId = null;
|
||||
}
|
||||
String tableCartKey = RedisCst.getTableCartKey(shopId, tableId, userId);
|
||||
TbCashierCart seatCartInfo = null;
|
||||
if (redisUtil.exists(tableCartKey)) {
|
||||
@@ -215,7 +219,6 @@ public class CartService {
|
||||
}
|
||||
}
|
||||
|
||||
ShopEatTypeInfoDTO shopEatTypeInfoDTO = shopUtils.checkEatModel(tableId, shopId);
|
||||
redisUtil.saveMessage(RedisCst.getCurrentTableSeatCount(shopEatTypeInfoDTO.getShopInfo().getId(), tableId), JSONObject.toJSONString(seatCartInfo), 60 * 60 * 12L);
|
||||
|
||||
JSONObject jsonObject1 = new JSONObject();
|
||||
|
||||
Reference in New Issue
Block a user