From 9998b685bb080dc212d2861bfba819da2e79be8e Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期五, 23 九月 2022 13:32:32 +0800 Subject: [PATCH] # --- src/main/java/com/zy/core/thread/SteThread.java | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/zy/core/thread/SteThread.java b/src/main/java/com/zy/core/thread/SteThread.java index 8efb3e3..a278c53 100644 --- a/src/main/java/com/zy/core/thread/SteThread.java +++ b/src/main/java/com/zy/core/thread/SteThread.java @@ -5,6 +5,7 @@ import HslCommunication.Profinet.Siemens.SiemensPLCS; import HslCommunication.Profinet.Siemens.SiemensS7Net; import com.alibaba.fastjson.JSON; +import com.core.common.Cools; import com.core.common.DateUtils; import com.core.common.SpringUtils; import com.core.exception.CoolException; @@ -297,7 +298,9 @@ if (result != null && result.IsSuccess) { // 缁存姢鏁版嵁搴撴帓鍒楀眰 if (!steProtocol.getWaiting()) { - this.modifyPos(command.getRow().intValue(), command.getBay().intValue(), command.getLev().intValue()); + if (!Cools.isEmpty(command.getRow(), command.getBay(), command.getLev())) { + this.modifyPos(command.getRow().intValue(), command.getBay().intValue(), command.getLev().intValue()); + } } log.info("绌挎杞﹀懡浠や笅鍙慬id:{}] >>>>> {}", slave.getId(), JSON.toJSON(command)); -- Gitblit v1.9.1