From 559b2321be06967f32eb40ba434790b735d7fa33 Mon Sep 17 00:00:00 2001 From: zyx <zyx123456> Date: 星期二, 07 十一月 2023 16:53:55 +0800 Subject: [PATCH] 出库时,检测到选择的站点没有空的暂存位,则等成等待任务,等待任务的出库站点暂时不分配。 新增定时处理等待任务 --- src/main/java/com/zy/asrs/entity/OrderDetl.java | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/zy/asrs/entity/OrderDetl.java b/src/main/java/com/zy/asrs/entity/OrderDetl.java index aafcf23..2d20f94 100644 --- a/src/main/java/com/zy/asrs/entity/OrderDetl.java +++ b/src/main/java/com/zy/asrs/entity/OrderDetl.java @@ -433,10 +433,15 @@ } public Double getEnableQty() { + Double enableQty = null; if (null != this.anfme && this.qty != null) { - return this.anfme - this.qty; + enableQty = this.anfme - this.qty; + if (enableQty < 0) { + enableQty = 0.0D; + } +// return this.anfme - this.qty; } - return null; + return enableQty; } public void sync(Object source) { -- Gitblit v1.9.1