From d3cb0e841e6585aa84a45f18bb30965db8d1a6aa Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期三, 08 一月 2025 15:48:40 +0800 Subject: [PATCH] # --- src/main/java/com/zy/common/model/DetlDto.java | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/common/model/DetlDto.java b/src/main/java/com/zy/common/model/DetlDto.java index ff48745..a5008ce 100644 --- a/src/main/java/com/zy/common/model/DetlDto.java +++ b/src/main/java/com/zy/common/model/DetlDto.java @@ -20,6 +20,10 @@ private Double anfme; + private String bomCode; + + private String threeCode; + public DetlDto() { } @@ -37,6 +41,13 @@ this.matnr = matnr; this.batch = batch; this.anfme = anfme; + } + + public DetlDto(String matnr, String batch,String bomCode,String threeCode) { + this.matnr = matnr; + this.batch = batch; + this.bomCode = bomCode; + this.threeCode = threeCode; } @@ -66,6 +77,19 @@ return false; } + public static boolean has2(List<DetlDto> detlDtos, DetlDto detlDto) { + for (DetlDto dto : detlDtos) { + if (dto.getMatnr().equals(detlDto.getMatnr()) + && Cools.eq(dto.getBatch(), detlDto.getBatch()) + && Cools.eq(dto.getBomCode(), detlDto.getBomCode()) + && Cools.eq(dto.getThreeCode(), detlDto.getThreeCode()) + ) { + return true; + } + } + return false; + } + public static DetlDto find(List<DetlDto> detlDtos, String matnr, String batch) { if (Cools.isEmpty(matnr)) { return null; -- Gitblit v1.9.1