From dafe461ac61fd3393e739226f9221da0f4157130 Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期日, 03 十一月 2024 13:02:32 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/common/model/DetlDto.java |   73 ++++++++++++++++++++++++++++++++++--
 1 files changed, 69 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/zy/common/model/DetlDto.java b/src/main/java/com/zy/common/model/DetlDto.java
index 650e884..6d42222 100644
--- a/src/main/java/com/zy/common/model/DetlDto.java
+++ b/src/main/java/com/zy/common/model/DetlDto.java
@@ -15,11 +15,26 @@
 
     private String orderNo;
 
+    //鏂欐兂鐮�
+    private String containerCode;
+
     private String matnr;
 
     private String batch;
 
     private Double anfme;
+
+    //閿�鍞鍗曞彿
+    private String csocode;
+
+    //閿�鍞鍗曡鍙�
+    private String isoseq;
+
+    // 搴撲綅绫诲瀷锛� 1銆佷唬鍖呰鎴愬搧锛�2銆佸師鏉愭枡锛�3銆佺澹�
+    private Integer locType;
+
+    // 宸ュ簭鐘舵�� 1锛氬緟鍔犲伐锛�2锛氬凡鍔犲伐锛�3锛氭棤闇�鍔犲伐
+    private Integer processSts;
 
     public DetlDto() {
     }
@@ -27,6 +42,12 @@
     public DetlDto(String matnr, Double anfme) {
         this.matnr = matnr;
         this.anfme = anfme;
+    }
+
+    public DetlDto(String matnr, Double anfme,Integer processSts) {
+        this.matnr = matnr;
+        this.anfme = anfme;
+        this.processSts = processSts;
     }
 
     public DetlDto(String matnr, String batch) {
@@ -40,11 +61,42 @@
         this.anfme = anfme;
     }
 
-    public DetlDto(String orderNo, String matnr, String batch, Double anfme) {
+    public DetlDto(String matnr, String batch, Double anfme, String csocode, String isoseq, String containerCode) {
+        this.matnr = matnr;
+        this.batch = batch;
+        this.anfme = anfme;
+        this.csocode = csocode;
+        this.isoseq = isoseq;
+        this.containerCode = containerCode;
+    }
+    public DetlDto(String matnr, String batch, Double anfme, String csocode, String isoseq, String containerCode, Integer locType) {
+        this.matnr = matnr;
+        this.batch = batch;
+        this.anfme = anfme;
+        this.csocode = csocode;
+        this.isoseq = isoseq;
+        this.containerCode = containerCode;
+        this.locType = locType;
+    }
+
+    public DetlDto(String matnr, String batch, Double anfme, String csocode, String isoseq, String containerCode, Integer locType, Integer processSts) {
+        this.matnr = matnr;
+        this.batch = batch;
+        this.anfme = anfme;
+        this.csocode = csocode;
+        this.isoseq = isoseq;
+        this.containerCode = containerCode;
+        this.locType = locType;
+        this.processSts = processSts;
+    }
+
+    public DetlDto(String orderNo, String matnr, String batch, Double anfme, String csocode, String isoseq) {
         this.orderNo = orderNo;
         this.matnr = matnr;
         this.batch = batch;
         this.anfme = anfme;
+        this.csocode = csocode;
+        this.isoseq = isoseq;
     }
 
     public static boolean hasList(Set<DetlDto> detlDtos, OrderDetl orderDetl) {
@@ -66,23 +118,36 @@
 
     public static boolean has(List<DetlDto> detlDtos, DetlDto detlDto) {
         for (DetlDto dto : detlDtos) {
-            if (dto.getMatnr().equals(detlDto.getMatnr()) && Cools.eq(dto.getBatch(), detlDto.getBatch())) {
+            if (dto.getMatnr().equals(detlDto.getMatnr())
+                    && Cools.eq(dto.getContainerCode(), detlDto.getContainerCode())
+                    && Cools.eq(dto.getBatch(), detlDto.getBatch())
+                    && Cools.eq(dto.getCsocode(),detlDto.getCsocode())
+                    && Cools.eq(dto.getIsoseq(),detlDto.getIsoseq())) {
                 return true;
             }
         }
         return false;
     }
 
-    public static DetlDto find(List<DetlDto> detlDtos, String matnr, String batch) {
+    public static DetlDto find(List<DetlDto> detlDtos, String matnr, String batch, String csocode, String isoseq, String containerCode) {
         if (Cools.isEmpty(matnr)) {
             return null;
         }
         for (DetlDto detlDto : detlDtos) {
-            if (matnr.equals(detlDto.getMatnr()) && Cools.eq(batch, detlDto.getBatch())) {
+            if (matnr.equals(detlDto.getMatnr())
+                    && Cools.eq(containerCode, detlDto.getContainerCode())
+                    && Cools.eq(batch, detlDto.getBatch())
+                    && Cools.eq(csocode,detlDto.getCsocode())
+                    && Cools.eq(isoseq,detlDto.getIsoseq())) {
                 return detlDto;
             }
         }
         return null;
     }
 
+    public static void main(String[] args) {
+        boolean a = Cools.eq("a", null);
+        System.out.println(a);
+    }
+
 }

--
Gitblit v1.9.1