From 52a57d1a6cd61009304656db35e50d4b9dbbda03 Mon Sep 17 00:00:00 2001 From: cpT <1@123> Date: 星期二, 01 七月 2025 11:16:40 +0800 Subject: [PATCH] #改造 --- src/main/java/com/zy/asrs/controller/SiteController.java | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/zy/asrs/controller/SiteController.java b/src/main/java/com/zy/asrs/controller/SiteController.java index 759eec6..b2e0413 100644 --- a/src/main/java/com/zy/asrs/controller/SiteController.java +++ b/src/main/java/com/zy/asrs/controller/SiteController.java @@ -18,6 +18,7 @@ import com.zy.core.model.protocol.StaProtocol; import com.zy.core.properties.SlaveProperties; import com.zy.core.DevpThread; +import com.zy.core.thread.BarcodeThread; import com.zy.core.thread.SiemensDevpThread; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -113,6 +114,9 @@ vo.setStaNo(staProtocol.getStaNo()); // 鐩爣绔� // vo.setLocType1(staProtocol.isHigh() != staProtocol.isLow() && staProtocol.isLow() ? "浣�" : "楂�"); //楂樹綆搴撲綅 vo.setLocType1(devp.getDevNo()==102 ? "楂�" : "浣�"); + vo.setWeight(staProtocol.getGrossWt().toString()); + vo.setBarcode(staProtocol.getBarcodeNow()); + vo.setErrorDev(staProtocol.getErrorDev$()); } return R.ok().add(list); } @@ -270,7 +274,7 @@ staProtocol.setWorkNo(0); staProtocol.setStaNo(0); basDevpService.updateById(basDevp); - boolean result = CommandUtils.offer(SlaveType.Devp, devp.getId(), new Task(3, staProtocol), false); + boolean result = MessageQueue.offer(SlaveType.Devp, devp.getId(), new Task(3, staProtocol)); if (result) { return R.ok(); } else { @@ -310,7 +314,7 @@ } staProtocol.setWorkNo( 9999); staProtocol.setStaNo(inSta.getStaNo()); - boolean result = CommandUtils.offer(SlaveType.Devp, devp.getId(), new Task(3, staProtocol), false); + boolean result = MessageQueue.offer(SlaveType.Devp, devp.getId(), new Task(3, staProtocol)); if (result) { return R.ok(); } else { -- Gitblit v1.9.1