Commit 9b331001 authored by wanghao's avatar wanghao

1测试上电断电操作

parent 04b02950
...@@ -76,8 +76,8 @@ public class NettyUdpServerHandler extends SimpleChannelInboundHandler<DatagramP ...@@ -76,8 +76,8 @@ public class NettyUdpServerHandler extends SimpleChannelInboundHandler<DatagramP
String messageGbk = new String(bytes, "GBK"); String messageGbk = new String(bytes, "GBK");
// 日志打印多种编码结果,帮助确定发送端使用的编码 // 日志打印多种编码结果,帮助确定发送端使用的编码
log.info("收到来自{}的UDP消息:", packet.sender()); // log.info("收到来自{}的UDP消息:", packet.sender());
log.info("GBK解码: {}", messageGbk); // log.info("GBK解码: {}", messageGbk);
// 根据实际情况选择正确的编码方式 // 根据实际情况选择正确的编码方式
// 这里假设通过日志观察后确定发送端使用GBK编码 // 这里假设通过日志观察后确定发送端使用GBK编码
...@@ -147,8 +147,6 @@ public class NettyUdpServerHandler extends SimpleChannelInboundHandler<DatagramP ...@@ -147,8 +147,6 @@ public class NettyUdpServerHandler extends SimpleChannelInboundHandler<DatagramP
currentCommands.remove("127.0.0.1"); currentCommands.remove("127.0.0.1");
log.info("指令完成: {}", execution.commandId); log.info("指令完成: {}", execution.commandId);
} }
} else {
log.info("status.isFullyIdle() = false");
} }
} }
......
...@@ -44,6 +44,8 @@ public interface ITTrayInfoService ...@@ -44,6 +44,8 @@ public interface ITTrayInfoService
*/ */
public int updateTTrayInfo(TTrayInfo tTrayInfo); public int updateTTrayInfo(TTrayInfo tTrayInfo);
public int updateStatusByTrayCode(TTrayInfo tTrayInfo);
/** /**
* 批量删除托盘信息 * 批量删除托盘信息
* *
......
...@@ -79,6 +79,11 @@ public class TTrayInfoServiceImpl implements ITTrayInfoService ...@@ -79,6 +79,11 @@ public class TTrayInfoServiceImpl implements ITTrayInfoService
return tTrayInfoMapper.updateTTrayInfo(tTrayInfo); return tTrayInfoMapper.updateTTrayInfo(tTrayInfo);
} }
@Override
public int updateStatusByTrayCode(TTrayInfo tTrayInfo) {
return tTrayInfoMapper.updateStatusByTrayCode(tTrayInfo);
}
/** /**
* 批量删除托盘信息 * 批量删除托盘信息
* *
......
...@@ -75,7 +75,7 @@ public class AllCommandHandler { ...@@ -75,7 +75,7 @@ public class AllCommandHandler {
TTrayInfo tTrayInfo = new TTrayInfo(); TTrayInfo tTrayInfo = new TTrayInfo();
tTrayInfo.setfStatus("1"); tTrayInfo.setfStatus("1");
tTrayInfo.setfStoreyCode(storeyCode); tTrayInfo.setfStoreyCode(storeyCode);
trayInfoService.updateTTrayInfo(tTrayInfo); trayInfoService.updateStatusByTrayCode(tTrayInfo);
deviceTaskScheduler.scheduleDeviceMonitoring(tStoreyInfo.getfStoreyId(),fip,fport); deviceTaskScheduler.scheduleDeviceMonitoring(tStoreyInfo.getfStoreyId(),fip,fport);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment