mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 11:35:12 +08:00
update 查询订单详情页时,检查订单状态
This commit is contained in:
@@ -52,7 +52,7 @@ public class NettyClient implements Runnable {
|
||||
ChannelFuture future = b.connect(HOST, PORT).sync();
|
||||
while (boo) {
|
||||
num++;
|
||||
future.channel().writeAndFlush("发送数据=======" + content + "--" + DateUtils.getTime());
|
||||
future.channel().writeAndFlush("发送数据=======" + content + "--" + DateUtils.getDateTime());
|
||||
try { //休眠一段时间
|
||||
Thread.sleep(3000);
|
||||
} catch (InterruptedException e) {
|
||||
|
||||
@@ -64,7 +64,7 @@ public class NettyClientHandler extends ChannelInboundHandlerAdapter {
|
||||
return;
|
||||
}
|
||||
//将客户端的信息直接返回写入ctx
|
||||
ctx.write(msg + " 时间:" + DateUtils.getTime());
|
||||
ctx.write(msg + " 时间:" + DateUtils.getDateTime());
|
||||
//刷新缓存区
|
||||
ctx.flush();
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ public abstract class AbstractHandler implements InitializingBean {
|
||||
*/
|
||||
protected void saveLastTime(String pileSn) {
|
||||
String redisKey = CacheConstants.PILE_LAST_CONNECTION + pileSn;
|
||||
redisCache.setCacheObject(redisKey, DateUtils.getTime(), CacheConstants.cache_expire_time_1d);
|
||||
redisCache.setCacheObject(redisKey, DateUtils.getDateTime(), CacheConstants.cache_expire_time_1d);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -126,7 +126,7 @@ public class GroundLockDataUploadHandler extends AbstractHandler{
|
||||
.parkingStatus(parkingStatus)
|
||||
.groundLockElectric(groundLockElectric)
|
||||
.alarmStatus(alarmStatus)
|
||||
.time(DateUtils.getTime())
|
||||
.time(DateUtils.getDateTime())
|
||||
.build();
|
||||
|
||||
// 地锁信息放缓存中 缓存10分钟
|
||||
|
||||
Reference in New Issue
Block a user