From adbc0776b0697ee618eeeeb601a28c0bcd6d1e7b Mon Sep 17 00:00:00 2001 From: SongZhang <2064194730@qq.com> Date: Sun, 29 Sep 2024 14:00:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=B1=E9=A4=90=E6=A8=A1=E5=BC=8F=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cashierservice/netty/PushToAppChannelHandlerAdapter.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/netty/PushToAppChannelHandlerAdapter.java b/src/main/java/com/chaozhanggui/system/cashierservice/netty/PushToAppChannelHandlerAdapter.java index 4d83a4f..4e42779 100644 --- a/src/main/java/com/chaozhanggui/system/cashierservice/netty/PushToAppChannelHandlerAdapter.java +++ b/src/main/java/com/chaozhanggui/system/cashierservice/netty/PushToAppChannelHandlerAdapter.java @@ -54,8 +54,6 @@ public class PushToAppChannelHandlerAdapter extends NettyChannelHandlerAdapter { private RabbitProducer a; //注入为空 public static RabbitProducer rabbitProducer; - @Autowired - private ShopUtils shopUtils; @PostConstruct public void b() { @@ -141,8 +139,7 @@ public class PushToAppChannelHandlerAdapter extends NettyChannelHandlerAdapter { return; } - ShopEatTypeInfoDTO eatModel = shopUtils.getEatModel(tableId, shopId); - String tableCartKey = RedisCst.getTableCartKey(shopId, !eatModel.isOpenTakeout() ? null : tableId, Integer.valueOf(userId)); + String tableCartKey = RedisCst.getTableCartKey(shopId, tableId, Integer.valueOf(userId)); log.info("netty连接 接收到数据 建立连接参数 param:{}",jsonObject); this.tableId=tableId; this.shopId=shopId;