From 32caf8bc88bdedf95ce14fd72d8ec13126910196 Mon Sep 17 00:00:00 2001 From: Comair <1464848666@qq.com> Date: Fri, 26 Jul 2024 09:14:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E5=BA=93=E6=97=B6=EF=BC=8C=E6=9D=A1?= =?UTF-8?q?=E7=A0=81=E9=87=8D=E5=A4=8D=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/shkj/wms/outbound/SchedulingOutboundInfo.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/shkj-wms/src/main/java/com/shkj/wms/outbound/SchedulingOutboundInfo.java b/shkj-wms/src/main/java/com/shkj/wms/outbound/SchedulingOutboundInfo.java index 86c2b59..502ee5a 100644 --- a/shkj-wms/src/main/java/com/shkj/wms/outbound/SchedulingOutboundInfo.java +++ b/shkj-wms/src/main/java/com/shkj/wms/outbound/SchedulingOutboundInfo.java @@ -91,7 +91,14 @@ public class SchedulingOutboundInfo { // 根据vin获取对应的出库任务数据——主要是过点时间 BaseBarcodesOutQueryBo baseBarcodesOutQueryBo = new BaseBarcodesOutQueryBo(); baseBarcodesOutQueryBo.setVin(vin); - BaseBarcodesOut baseBarcodesOut = iBaseBarcodesOutService.getOne(new LambdaQueryWrapper().eq(BaseBarcodesOut::getVin,vin).isNull(BaseBarcodesOut::getIs_cancel)); + BaseBarcodesOut baseBarcodesOut = iBaseBarcodesOutService.getOne( + new LambdaQueryWrapper().eq(BaseBarcodesOut::getVin,vin) + .isNull(BaseBarcodesOut::getIs_cancel).last("limit 1")) + ; + if (baseBarcodesOut == null){ + log.info("vin已出庫"); + return; + } // 通过过点时间获取等于该时间或者大于过点时间的任务数据 只获取一条数据 baseBarcodesOutQueryBo = new BaseBarcodesOutQueryBo(); baseBarcodesOutQueryBo.setTraverseDate(baseBarcodesOut.getTraverseDate());