From 47538a54f9870febd44d0684f37666407ade6502 Mon Sep 17 00:00:00 2001 From: lsh <1> Date: 星期三, 20 十二月 2023 15:40:44 +0800 Subject: [PATCH] # --- src/main/java/com/zy/core/thread/SiemensCrnThread.java | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/zy/core/thread/SiemensCrnThread.java b/src/main/java/com/zy/core/thread/SiemensCrnThread.java index 5563f68..c9931ec 100644 --- a/src/main/java/com/zy/core/thread/SiemensCrnThread.java +++ b/src/main/java/com/zy/core/thread/SiemensCrnThread.java @@ -11,6 +11,7 @@ import com.zy.asrs.entity.BasCrnp; import com.zy.asrs.service.BasCrnOptService; import com.zy.asrs.service.BasCrnpService; +import com.zy.common.utils.News; import com.zy.core.CrnThread; import com.zy.core.cache.MessageQueue; import com.zy.core.cache.OutputQueue; @@ -86,12 +87,8 @@ write(command); break; case 4: - if(task.getData().equals("0")){ - siemensNet.Write("DB100.276", (short)0); - }else { - siemensNet.Write("DB100.276", (short)1); - } - + Integer data = (Integer) task.getData(); + siemensNet.Write("DB100.276", data.shortValue()); break; default: break; -- Gitblit v1.9.1