From 7125d7c2be53db25b8a11d42abc8730b36ef61bc Mon Sep 17 00:00:00 2001
From: yangyang
Date: 星期二, 15 七月 2025 13:23:30 +0800
Subject: [PATCH] 任务工作档生成播种明细

---
 zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/WaitPakinServiceImpl.java |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/WaitPakinServiceImpl.java b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/WaitPakinServiceImpl.java
index fb5d995..72ca1a7 100644
--- a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/WaitPakinServiceImpl.java
+++ b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/WaitPakinServiceImpl.java
@@ -61,13 +61,15 @@
 
         //鍙敤鏁伴噺
 //        Double count = orderDetl.getAnfme() - orderDetl.getQty() - orderDetl.getWorkQty() - orderDetl.getWaitQty();
-        Double count = Math.round((orderDetl.getAnfme() - orderDetl.getWorkQty() - orderDetl.getQty() - orderDetl.getWaitQty()) * 1000) / 1000.0;
-        if (waitPakin.getAnfme() > count) {
+        Double count = Math.round((orderDetl.getAnfme() - orderDetl.getWorkQty() - orderDetl.getQty()) * 1000) / 1000.0;
+        if (waitPakin.getAnfme().compareTo(count) > 0) {
             throw new CoolException("缁勬墭鏁伴噺瓒呰繃鍓╀綑鍙敤鏁伴噺");
         }
 
         //鏌ヨ鏄惁瀛樺湪鐩稿悓鏄庣粏鍜屾墭鐩樼爜鐨勭粍鎵橀�氱煡妗�
-        WaitPakin waitPakin1 = this.getOne(new LambdaQueryWrapper<WaitPakin>().eq(WaitPakin::getBarcode, waitPakin.getBarcode()).eq(WaitPakin::getDetlId, waitPakin.getDetlId()));
+        WaitPakin waitPakin1 = this.getOne(new LambdaQueryWrapper<WaitPakin>()
+                .eq(WaitPakin::getBarcode, waitPakin.getBarcode())
+                .eq(WaitPakin::getDetlId, waitPakin.getDetlId()));
         if (waitPakin1 == null) {
             //涓嶅瓨鍦ㄧ粍鎵橀�氱煡妗o紝鍒涘缓
             waitPakin.setMatnr(orderDetl.getMat$().getMatnr());

--
Gitblit v1.9.1