From 94e4a7598d2ed0bee320174bcd44a3844d59cc0d Mon Sep 17 00:00:00 2001 From: LSH Date: 星期三, 27 十二月 2023 19:25:00 +0800 Subject: [PATCH] # --- src/main/java/com/zy/common/model/DetlDto.java | 19 +++++++++++++++++++ 1 files changed, 19 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 f56bb09..81a42db 100644 --- a/src/main/java/com/zy/common/model/DetlDto.java +++ b/src/main/java/com/zy/common/model/DetlDto.java @@ -2,6 +2,7 @@ import com.core.common.Cools; import com.zy.asrs.entity.OrderDetl; +import com.zy.asrs.entity.param.OpenOrderPakinJDParam; import lombok.Data; import java.util.List; @@ -22,12 +23,22 @@ private int owner; private String ownerName; + private int beBatch; private int payment; private Double weight; public DetlDto() { + } + + public DetlDto(OpenOrderPakinJDParam.DetlDto2 detlDto2) { + this.matnr=detlDto2.getMatnr(); + this.batch=detlDto2.getBatch(); + this.anfme=detlDto2.getAnfme(); + this.ownerName=detlDto2.getOwner(); + this.beBatch=detlDto2.getBeBatch(); + this.payment=0; } public DetlDto(String matnr, Double anfme) { @@ -69,6 +80,14 @@ this.weight = weight; } + public DetlDto(String matnr, String batch, Double anfme,String ownerName,int payment) { + this.matnr = matnr; + this.batch = batch; + this.anfme = anfme; + this.ownerName = ownerName; + this.payment = payment; + } + public static boolean hasList(Set<DetlDto> detlDtos, OrderDetl orderDetl) { for (DetlDto dto : detlDtos) { -- Gitblit v1.9.1