|
@@ -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
|
}
|