From 19339cd1d8f0b74d4f3b17b0e8760bc45b67bba6 Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期四, 28 三月 2024 07:58:00 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/common/model/MatDto.java | 47 +++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 45 insertions(+), 2 deletions(-)
diff --git a/src/main/java/com/zy/common/model/MatDto.java b/src/main/java/com/zy/common/model/MatDto.java
index e5b625b..b78e622 100644
--- a/src/main/java/com/zy/common/model/MatDto.java
+++ b/src/main/java/com/zy/common/model/MatDto.java
@@ -1,5 +1,7 @@
package com.zy.common.model;
+import com.core.common.Cools;
+import com.zy.asrs.entity.WrkDetl;
import lombok.Data;
/**
@@ -8,14 +10,31 @@
@Data
public class MatDto {
- // 鐗╂枡缂栧彿
+ // 鐗╂枡缂栧彿 瑙勬牸
private String matNo;
+ private String matnr;
- // 鐗╂枡鍚嶇О
+ // 鐗╂枡鍚嶇О 瑙勬牸
private String maknx;
+
+ //瑙勬牸
+ private String specs;
+
+ //绠卞彿
+ private String batch;
+
+ //鎵规
+ private String model;
+
+ //鍗峰彿
+// private String juanNo;
+ private String price;
+ private String orderNo;
// 鐗╂枡鏁伴噺
private Double count;
+ private Double weight;
+ private Double volume;
public MatDto() {
}
@@ -25,4 +44,28 @@
this.maknx = maknx;
this.count = count;
}
+
+ public MatDto(String matNo, String maknx, String specs, Double count) {
+ this.matNo = matNo;
+ this.maknx = maknx;
+ this.count = count;
+ this.specs = specs;
+ }
+ public MatDto(WrkDetl wrkDetl) {
+ this.matNo = wrkDetl.getMatnr();
+ this.matnr = wrkDetl.getMatnr();
+ this.maknx = wrkDetl.getMaktx();
+ this.specs = wrkDetl.getSpecs();
+ this.batch = wrkDetl.getBatch();
+ this.model = wrkDetl.getModel();
+ if (Cools.isEmpty(wrkDetl.getPrice())){
+ wrkDetl.setPrice(0.0);
+ }
+ this.price = wrkDetl.getPrice().toString();
+// this.juanNo = wrkDetl.getSku();
+ this.count = wrkDetl.getAnfme();
+ this.weight = wrkDetl.getWeight();
+ this.volume = wrkDetl.getVolume();
+ this.orderNo = wrkDetl.getOrderNo();
+ }
}
--
Gitblit v1.9.1