From 98b1835a279fd8c9ed2a21fae3501f24c470c39b Mon Sep 17 00:00:00 2001
From: zyx <zyx123456>
Date: 星期四, 09 十一月 2023 09:37:36 +0800
Subject: [PATCH] 修复权限无法修改bug 组托时检测料箱码是否存在库存中

---
 src/main/java/com/zy/common/model/OrderDto.java |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/zy/common/model/OrderDto.java b/src/main/java/com/zy/common/model/OrderDto.java
index 362b2b7..e7e38c6 100644
--- a/src/main/java/com/zy/common/model/OrderDto.java
+++ b/src/main/java/com/zy/common/model/OrderDto.java
@@ -15,11 +15,14 @@
 
     private String matnr;
 
+    private String batch;
+
     private Double anfme;
 
-    public OrderDto(String orderNo, String matnr, Double anfme) {
+    public OrderDto(String orderNo, String matnr, String batch, Double anfme) {
         this.orderNo = orderNo;
         this.matnr = matnr;
+        this.batch = batch;
         this.anfme = anfme;
     }
 
@@ -28,7 +31,7 @@
             return false;
         }
         for (OrderDto orderDto : list) {
-            if (dto.getOrderNo().equals(orderDto.getOrderNo()) && dto.getMatnr().equals(orderDto.getMatnr())) {
+            if (dto.getOrderNo().equals(orderDto.getOrderNo()) && dto.getMatnr().equals(orderDto.getMatnr()) && Cools.eq(orderDto.getBatch(), dto.getBatch())) {
                 return true;
             }
         }
@@ -40,7 +43,7 @@
             return null;
         }
         for (OrderDto orderDto : list) {
-            if (dto.getOrderNo().equals(orderDto.getOrderNo()) && dto.getMatnr().equals(orderDto.getMatnr())) {
+            if (dto.getOrderNo().equals(orderDto.getOrderNo()) && dto.getMatnr().equals(orderDto.getMatnr()) && Cools.eq(dto.getBatch(), orderDto.getBatch())) {
                 return orderDto;
             }
         }

--
Gitblit v1.9.1