提交 5655fca4 authored 作者: 林业通's avatar 林业通

注释开关记录标识

上级 13bb2ebd
...@@ -172,14 +172,14 @@ public class OtherShDeviceTimingServiceImpl extends ServiceImpl<OtherShDeviceTim ...@@ -172,14 +172,14 @@ public class OtherShDeviceTimingServiceImpl extends ServiceImpl<OtherShDeviceTim
String content = ""; String content = "";
if (action != 0 && actionTwo != 0) { if (action != 0 && actionTwo != 0) {
content = s + s + "000000000003"; content = s + s + "000000000003";
redisUtils.set(entity1.getNumbering() + "action1", flag == 1 ? 1 : 2, 60); // redisUtils.set(entity1.getNumbering() + "action1", flag == 1 ? 1 : 2, 60);
redisUtils.set(entity1.getNumbering() + "action2", flag == 1 ? 3 : 4, 60); // redisUtils.set(entity1.getNumbering() + "action2", flag == 1 ? 3 : 4, 60);
}else if (action != 0) { }else if (action != 0) {
content = s + "00000000000001"; content = s + "00000000000001";
redisUtils.set(entity1.getNumbering() + "action1", flag == 1 ? 1 : 2, 60); // redisUtils.set(entity1.getNumbering() + "action1", flag == 1 ? 1 : 2, 60);
}else if (actionTwo != 0) { }else if (actionTwo != 0) {
content = "00"+ s +"000000000002"; content = "00"+ s +"000000000002";
redisUtils.set(entity1.getNumbering() + "action2", flag == 1 ? 3 : 4, 60); // redisUtils.set(entity1.getNumbering() + "action2", flag == 1 ? 3 : 4, 60);
} }
protocol.setReceiveId(entity1.getNumbering()); protocol.setReceiveId(entity1.getNumbering());
protocol.setContent(content); protocol.setContent(content);
...@@ -200,7 +200,7 @@ public class OtherShDeviceTimingServiceImpl extends ServiceImpl<OtherShDeviceTim ...@@ -200,7 +200,7 @@ public class OtherShDeviceTimingServiceImpl extends ServiceImpl<OtherShDeviceTim
protocol.setDeviceType(type); protocol.setDeviceType(type);
protocol.setCmd("18"); protocol.setCmd("18");
mqProducer.sendT(JSON.toJSONString(protocol)); mqProducer.sendT(JSON.toJSONString(protocol));
redisUtils.set(entity1.getNumbering() + "action", action1); // redisUtils.set(entity1.getNumbering() + "action", action1);
logger.info("action : {}", redisUtils.get(entity1.getNumbering() + "action")); logger.info("action : {}", redisUtils.get(entity1.getNumbering() + "action"));
logger.info("Numbering : {}", entity1.getNumbering()); logger.info("Numbering : {}", entity1.getNumbering());
break; break;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论