From 2d836c8b6a270b7007e1a2e1e9962cb9dcd8b6f6 Mon Sep 17 00:00:00 2001 From: zyx <zyx123456> Date: 星期一, 01 四月 2024 14:47:36 +0800 Subject: [PATCH] 入库接驳位空板自动出库 全班出库后自动空板入库 --- src/main/java/com/zy/common/model/OrderDto.java | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/zy/common/model/OrderDto.java b/src/main/java/com/zy/common/model/OrderDto.java index 362b2b7..e7e38c6 100644 --- a/src/main/java/com/zy/common/model/OrderDto.java +++ b/src/main/java/com/zy/common/model/OrderDto.java @@ -15,11 +15,14 @@ private String matnr; + private String batch; + private Double anfme; - public OrderDto(String orderNo, String matnr, Double anfme) { + public OrderDto(String orderNo, String matnr, String batch, Double anfme) { this.orderNo = orderNo; this.matnr = matnr; + this.batch = batch; this.anfme = anfme; } @@ -28,7 +31,7 @@ return false; } for (OrderDto orderDto : list) { - if (dto.getOrderNo().equals(orderDto.getOrderNo()) && dto.getMatnr().equals(orderDto.getMatnr())) { + if (dto.getOrderNo().equals(orderDto.getOrderNo()) && dto.getMatnr().equals(orderDto.getMatnr()) && Cools.eq(orderDto.getBatch(), dto.getBatch())) { return true; } } @@ -40,7 +43,7 @@ return null; } for (OrderDto orderDto : list) { - if (dto.getOrderNo().equals(orderDto.getOrderNo()) && dto.getMatnr().equals(orderDto.getMatnr())) { + if (dto.getOrderNo().equals(orderDto.getOrderNo()) && dto.getMatnr().equals(orderDto.getMatnr()) && Cools.eq(dto.getBatch(), orderDto.getBatch())) { return orderDto; } } -- Gitblit v1.9.1