From 4c826ad6beca6f265f964eafcfb5b6d5d3fe8f91 Mon Sep 17 00:00:00 2001 From: gengby <858962040@qq.com> Date: Sun, 4 Oct 2026 08:42:18 +0800 Subject: [PATCH] =?UTF-8?q?rev:=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ConveyorWithScannerWeightDeviceDriver.java | 3 +- .../service/impl/InstructionServiceImpl.java | 19 +++++++------ .../wms/constand/WmsMethodConstant.java | 2 +- .../service/quartz/task/AutoCreateInst.java | 28 ++++++++++--------- .../org/nl/extInterface/wms/WmsApiTest.java | 2 +- 5 files changed, 29 insertions(+), 25 deletions(-) diff --git a/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device/deviceDriver/service/defination/opcDefination/one_floor/conveyor/conveyor_with_scanner_weight/ConveyorWithScannerWeightDeviceDriver.java b/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device/deviceDriver/service/defination/opcDefination/one_floor/conveyor/conveyor_with_scanner_weight/ConveyorWithScannerWeightDeviceDriver.java index bb3f348..6f07763 100644 --- a/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device/deviceDriver/service/defination/opcDefination/one_floor/conveyor/conveyor_with_scanner_weight/ConveyorWithScannerWeightDeviceDriver.java +++ b/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/device/deviceDriver/service/defination/opcDefination/one_floor/conveyor/conveyor_with_scanner_weight/ConveyorWithScannerWeightDeviceDriver.java @@ -1,6 +1,7 @@ package org.nl.acs.device.deviceDriver.service.defination.opcDefination.one_floor.conveyor.conveyor_with_scanner_weight; import cn.hutool.core.util.ObjectUtil; +import cn.hutool.core.util.StrUtil; import com.alibaba.fastjson.JSONObject; import com.google.common.util.concurrent.Uninterruptibles; import lombok.Getter; @@ -200,7 +201,7 @@ public class ConveyorWithScannerWeightDeviceDriver extends AbstractOpcDeviceDriv Boolean applyTask = Optional.ofNullable(extraValue.get("apply_task")).map(Object::toString).map(Boolean::parseBoolean).orElse(false); if (applyTask) { //编写业务逻辑方法 - if (mode >= 6 && !this.requireSuccess) { + if (mode >= 6 && !this.requireSuccess && !StrUtil.equals(this.barcode,"NoRead")) { applyInbound("申请入库"); } } diff --git a/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/task/instruction/service/impl/InstructionServiceImpl.java b/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/task/instruction/service/impl/InstructionServiceImpl.java index 7fff1f0..f1a003d 100644 --- a/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/task/instruction/service/impl/InstructionServiceImpl.java +++ b/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/task/instruction/service/impl/InstructionServiceImpl.java @@ -578,15 +578,16 @@ public class InstructionServiceImpl extends CommonServiceImpl shortPathsList = routeLineService.getShortPathLines(start_device_code, next_device_code, route_plan_code); if (ObjectUtils.isEmpty(shortPathsList)) { @@ -117,19 +131,7 @@ public class AutoCreateInst { continue; } - // 判断当前是不是成品出库?任务类型:成品出库:9 - // 查找有没有空托盘出库的指令,叠托架= 当前任务终点的关联点位:逻辑写在驱动里 - if (TaskTypeEnum.OUTBOUNDTASK.getCode().equals(task_type)) { - // 获取终点 - Device device = deviceAppService.findDeviceByCode(next_device_code); - BeltConveyorAgvDeviceDriver deviceDriver = (BeltConveyorAgvDeviceDriver)device.getDeviceDriver(); - if (!deviceDriver.checkIssueTask()) { - acsTask.setRemark("有空托盘出库任务,暂时不下发!"); - taskserver.update(acsTask); - taskserver.updateByCodeFromCache(acsTask); - continue; - } - } + Instruction instdto = new Instruction(); instdto.setInstruction_type(task_type); diff --git a/acs2/nladmin-system/nlsso-server/src/test/java/org/nl/extInterface/wms/WmsApiTest.java b/acs2/nladmin-system/nlsso-server/src/test/java/org/nl/extInterface/wms/WmsApiTest.java index cf35774..ff074ff 100644 --- a/acs2/nladmin-system/nlsso-server/src/test/java/org/nl/extInterface/wms/WmsApiTest.java +++ b/acs2/nladmin-system/nlsso-server/src/test/java/org/nl/extInterface/wms/WmsApiTest.java @@ -31,7 +31,7 @@ class WmsApiTest { @Test void shouldApplyEmptyPalletInboundTask() { ApplyInboundReqVO request = ApplyInboundReqVO.builder() - .type("6") + .type(6) .deviceCode("DEV001") .build();