From 06a901e11f9ec144b709efa3610f5abd0e5936d6 Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期日, 07 四月 2024 09:18:08 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/entity/param/LocDetlAdjustParam.java | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/zy/asrs/entity/param/LocDetlAdjustParam.java b/src/main/java/com/zy/asrs/entity/param/LocDetlAdjustParam.java index a00c9ed..d8bb4a7 100644 --- a/src/main/java/com/zy/asrs/entity/param/LocDetlAdjustParam.java +++ b/src/main/java/com/zy/asrs/entity/param/LocDetlAdjustParam.java @@ -36,12 +36,16 @@ //閿�鍞鍗曡鍙� private String deadTime; - public LocDetlAdjust(String matnr, String batch, Double count, String threeCode, String deadTime) { + //鏂欑鐮� + private String suppCode; + + public LocDetlAdjust(String matnr, String batch, Double count, String threeCode, String deadTime, String suppCode) { this.matnr = matnr; this.batch = batch; this.count = count; this.threeCode = threeCode; this.deadTime = deadTime; + this.suppCode = suppCode; } } @@ -53,14 +57,14 @@ for (LocDetlAdjust adjust : list) { boolean exit = false; for (LocDetlAdjust copy : copyList) { - if (adjust.getMatnr().equals(copy.getMatnr()) && Cools.eq(adjust.getBatch(), copy.getBatch())) { + if (adjust.getMatnr().equals(copy.getMatnr()) && Cools.eq(adjust.getBatch(), copy.getBatch()) && Cools.eq(adjust.getSuppCode(),copy.getSuppCode()) && Cools.eq(adjust.getThreeCode(),copy.getThreeCode()) && Cools.eq(adjust.getDeadTime(),copy.getDeadTime())) { copy.setCount(copy.getCount() + adjust.getCount()); exit = true; break; } } if (!exit) { - copyList.add(new LocDetlAdjustParam.LocDetlAdjust(adjust.getMatnr(), adjust.getBatch(), adjust.getCount(), adjust.getThreeCode(), adjust.getDeadTime())); + copyList.add(new LocDetlAdjustParam.LocDetlAdjust(adjust.getMatnr(), adjust.getBatch(), adjust.getCount(), adjust.getThreeCode(), adjust.getDeadTime(),adjust.getSuppCode())); } } list = copyList; -- Gitblit v1.9.1