소스 검색

回复消息 bug修改

zjs 4 일 전
부모
커밋
e9a8fb31d5
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      src/main/java/com/cn/esermis/netty/BootNettyChannelInboundHandlerAdapter.java

+ 4 - 4
src/main/java/com/cn/esermis/netty/BootNettyChannelInboundHandlerAdapter.java

@@ -95,8 +95,8 @@ public class BootNettyChannelInboundHandlerAdapter extends ChannelInboundHandler
95 95
                             String CN = jsonObject.getString("CN");
96 96
                             String MN = jsonObject.getString("MN");
97 97
                             String dataTime = jsonObject.getString("DataTime");
98
-                            if (!adapter.redisQueueService.isElementExist(CN + MN + dataTime, dataTime)){
99
-                                adapter.redisQueueService.addElementWithExpire(CN+MN+dataTime, dataTime, 1, TimeUnit.HOURS);
98
+                            if (!adapter.redisQueueService.isElementExist(MN +":"+ CN +":"+ dataTime, dataTime)){
99
+                                adapter.redisQueueService.addElementWithExpire(MN +":"+ CN +":"+ dataTime, dataTime, 1, TimeUnit.HOURS);
100 100
                                 adapter.redisQueueService.sendMessage(Constant.SERVER, jsonObject);
101 101
                             }
102 102
                         }
@@ -112,8 +112,8 @@ public class BootNettyChannelInboundHandlerAdapter extends ChannelInboundHandler
112 112
                                 String CN = jsonObject.getString("CN");
113 113
                                 String MN = jsonObject.getString("MN");
114 114
                                 String dataTime = jsonObject.getString("DataTime");
115
-                                if (!adapter.redisQueueService.isElementExist(CN + MN + dataTime, dataTime)){
116
-                                    adapter.redisQueueService.addElementWithExpire(CN+MN+dataTime, dataTime, 1, TimeUnit.HOURS);
115
+                                if (!adapter.redisQueueService.isElementExist(MN +":"+ CN +":"+ dataTime, dataTime)){
116
+                                    adapter.redisQueueService.addElementWithExpire(MN +":"+ CN +":"+ dataTime, dataTime, 1, TimeUnit.HOURS);
117 117
                                     adapter.redisQueueService.sendMessage(Constant.SERVER, jsonObject);
118 118
                                 }
119 119
                             }