From 3fd2ec65c4f8b2d0338f6e3f069b8d3c0ed2b197 Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期二, 03 九月 2024 08:06:22 +0800 Subject: [PATCH] #agv led显示信息修改 --- src/main/java/com/zy/asrs/entity/param/LocDetlAdjustParam.java | 18 +++++++++++++++--- 1 files changed, 15 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 c654988..d8bb4a7 100644 --- a/src/main/java/com/zy/asrs/entity/param/LocDetlAdjustParam.java +++ b/src/main/java/com/zy/asrs/entity/param/LocDetlAdjustParam.java @@ -30,10 +30,22 @@ // 鍙樻洿鏁伴噺 private Double count; - public LocDetlAdjust(String matnr, String batch, Double count) { + // 閿�鍞鍗曞彿 + private String threeCode; + + //閿�鍞鍗曡鍙� + private 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; } } @@ -45,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())); + copyList.add(new LocDetlAdjustParam.LocDetlAdjust(adjust.getMatnr(), adjust.getBatch(), adjust.getCount(), adjust.getThreeCode(), adjust.getDeadTime(),adjust.getSuppCode())); } } list = copyList; -- Gitblit v1.9.1