From e72f4946b1696a570022d6ae715fa07656ab89f7 Mon Sep 17 00:00:00 2001
From: zyx <zyx123456>
Date: 星期三, 27 九月 2023 13:07:43 +0800
Subject: [PATCH] Merge branch 'tzskasrs' of http://47.97.1.152:5880/r/zy-asrs into tzskasrs
---
src/main/java/com/zy/common/model/DetlDto.java | 35 +++++++++++++++++++++++++++++++----
1 files changed, 31 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..40c59e0 100644
--- a/src/main/java/com/zy/common/model/DetlDto.java
+++ b/src/main/java/com/zy/common/model/DetlDto.java
@@ -15,11 +15,20 @@
private String orderNo;
+ //鏂欐兂鐮�
+ private String containerCode;
+
private String matnr;
private String batch;
private Double anfme;
+
+ //閿�鍞鍗曞彿
+ private String csocode;
+
+ //閿�鍞鍗曡鍙�
+ private String isoseq;
public DetlDto() {
}
@@ -40,11 +49,21 @@
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) {
+ this.matnr = matnr;
+ this.batch = batch;
+ this.anfme = anfme;
+ this.csocode = csocode;
+ this.isoseq = isoseq;
+ }
+
+ 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,19 +85,27 @@
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;
}
}
--
Gitblit v1.9.1