From 0f023698bc46d687ebebbef50e1b07dd0d21e226 Mon Sep 17 00:00:00 2001 From: erzhongxmu Date: Sat, 22 Oct 2022 13:21:09 +0800 Subject: [PATCH] =?UTF-8?q?PLC=E8=B0=83=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/zzjee/plc/controller/WmsPlcController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/zzjee/plc/controller/WmsPlcController.java b/src/main/java/com/zzjee/plc/controller/WmsPlcController.java index ea9052ad..d724d6f8 100644 --- a/src/main/java/com/zzjee/plc/controller/WmsPlcController.java +++ b/src/main/java/com/zzjee/plc/controller/WmsPlcController.java @@ -223,7 +223,7 @@ public class WmsPlcController extends BaseController { Float stepTime = Float.parseFloat(wmsPlc.getSetpTime()); comCons = StringUtils.replace(comCons,"{query01}",query01); comCons = StringUtils.replace(comCons,"{query02}",query02); - String[] coms = wmsPlc.getComCons().split(";"); + String[] coms = comCons.split(";"); for (String com : coms) { try { Thread.sleep(500);