就餐模式获取修改

This commit is contained in:
2024-09-29 14:10:19 +08:00
parent c2d4c9fdcc
commit a3e53c0bb5

View File

@@ -56,9 +56,7 @@ public class PushToAppChannelHandlerAdapter extends NettyChannelHandlerAdapter {
//注入为空
public static RabbitProducer rabbitProducer;
@Autowired
@Lazy
private ShopUtils shopUtils;
private ShopUtils shopUtils = SpringUtils.getBean(ShopUtils.class);
@PostConstruct
public void b() {
@@ -144,7 +142,6 @@ public class PushToAppChannelHandlerAdapter extends NettyChannelHandlerAdapter {
return;
}
log.info("信息: {}", shopUtils);
ShopEatTypeInfoDTO eatModel = shopUtils.getEatModel(tableId, shopId);
String tableCartKey = RedisCst.getTableCartKey(shopId, eatModel.isOpenTakeout() ? tableId : null, Integer.valueOf(userId));
log.info("netty连接 接收到数据 建立连接参数 key: {} param:{}", tableCartKey, jsonObject);