From c42346453608186971fad5e80ffd08fd58d38d06 Mon Sep 17 00:00:00 2001 From: zc <zc@123> Date: 星期三, 16 七月 2025 16:42:45 +0800 Subject: [PATCH] 完善erp对接 --- src/main/java/com/zy/common/model/DetlDto.java | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/zy/common/model/DetlDto.java b/src/main/java/com/zy/common/model/DetlDto.java index d04cdc5..7ae4f91 100644 --- a/src/main/java/com/zy/common/model/DetlDto.java +++ b/src/main/java/com/zy/common/model/DetlDto.java @@ -30,6 +30,9 @@ private Double actulQty; private Integer danger; private Integer quality; + private String batchNum; + private String code; + private String productionCode; public DetlDto() { } @@ -97,7 +100,7 @@ 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()) && dto.getFromOrderNo().equals(detlDto.getFromOrderNo())) { + if (dto.getMatnr().equals(detlDto.getMatnr()) && Cools.eq(dto.getBatch(), detlDto.getBatch()) &&Cools.eq(dto.getFromOrderNo(),detlDto.getFromOrderNo())) { return true; } } @@ -115,11 +118,12 @@ } return null; } - public static DetlDto find(List<DetlDto> detlDtos, String matnr, String batch,String threeCode) { + + public static DetlDto find(List<DetlDto> detlDtos, String matnr, String batch, String threeCode) { if (Cools.isEmpty(matnr)) { return null; } - if (Cools.isEmpty(threeCode)){ + if (Cools.isEmpty(threeCode)) { return null; } for (DetlDto detlDto : detlDtos) { -- Gitblit v1.9.1