From 2c945116a7d4dccac387930e40980ae1ba32f05c Mon Sep 17 00:00:00 2001
From: zyx <zyx123456>
Date: 星期六, 30 三月 2024 16:18:58 +0800
Subject: [PATCH] 物料导入更新 任务完成不解绑站点和容器 组托入库时增加判断是否容器和接驳位已经绑定

---
 src/main/java/com/zy/common/model/OutLocDto.java |   19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/src/main/java/com/zy/common/model/OutLocDto.java b/src/main/java/com/zy/common/model/OutLocDto.java
index 810abac..e75f276 100644
--- a/src/main/java/com/zy/common/model/OutLocDto.java
+++ b/src/main/java/com/zy/common/model/OutLocDto.java
@@ -40,17 +40,26 @@
         for (LocDetl locDetl : locDetls) {
             Iterator<LocDetlDto> iterator = locDetlDtosCp.iterator();
             while (iterator.hasNext()) {
-                LocDetl next = iterator.next().getLocDetl();
-                if (!next.getMatnr().equals(locDetl.getMatnr())) {
+                LocDetlDto next = iterator.next();
+                if (!next.getLocDetl().getMatnr().equals(locDetl.getMatnr())) {
                     continue;
                 }
-                if (!Cools.eq(next.getBatch(), locDetl.getBatch())) {
+                if (!Cools.eq(next.getLocDetl().getBatch(), locDetl.getBatch())) {
                     continue;
                 }
-                if (next.getAnfme() > locDetl.getAnfme()) {
+                if(!Cools.eq(next.getLocDetl().getSuppCode(),locDetl.getSuppCode())){
+                    continue;
+                }
+                if(!Cools.eq(next.getLocDetl().getThreeCode(),locDetl.getThreeCode())){
+                    continue;
+                }
+                if(!Cools.eq(next.getLocDetl().getDeadTime(),locDetl.getDeadTime())){
+                    continue;
+                }
+                if (next.getCount() > locDetl.getAnfme()) {
                     throw new CoolException("鏈嶅姟鍣ㄥ唴閮ㄩ敊璇�");
                 }
-                if (next.getAnfme().equals(locDetl.getAnfme())) {
+                if (next.getCount().equals(locDetl.getAnfme())) {
                     sameNumber++;
                     iterator.remove();
                     break;

--
Gitblit v1.9.1