From 4b9a1330faaf585038b233fbac119cb8652031cc Mon Sep 17 00:00:00 2001
From: yxFwq <1>
Date: 星期一, 15 十二月 2025 13:43:18 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/common/model/YXErpPakinParam.java | 115 ++++++++++++++++++++++++++++++++++++++++++---------------
1 files changed, 85 insertions(+), 30 deletions(-)
diff --git a/src/main/java/com/zy/common/model/YXErpPakinParam.java b/src/main/java/com/zy/common/model/YXErpPakinParam.java
index 7b5b8e4..7e31a5d 100644
--- a/src/main/java/com/zy/common/model/YXErpPakinParam.java
+++ b/src/main/java/com/zy/common/model/YXErpPakinParam.java
@@ -1,7 +1,10 @@
package com.zy.common.model;
+import com.core.common.DateUtils;
+import com.zy.asrs.entity.OrderDetl;
import lombok.Data;
+import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@@ -11,55 +14,107 @@
*/
@Data
public class YXErpPakinParam {
-
- // 搴撳瓨璋冩嫧鍗曞彿
- private String cTVCode; //蹇呭~
// 鍗曟嵁鏃ユ湡
+ private String dAVDate; //蹇呭~
private String dTVDate; //蹇呭~
- // 杞嚭浠撳簱缂栫爜
- private String cOWhCode = "100";
+ private String dVerifyDate;
+ private String cODepCode = "01"; //蹇呭~
+ private String cIRdCode = "107"; //蹇呭~
+ private String cORdCode = "207"; //蹇呭~
// 杞叆浠撳簱缂栫爜
- private String cIWhCode = "201";
- // 杞嚭閮ㄩ棬缂栫爜
- private String cODepCode;
- // 杞叆閮ㄩ棬缂栫爜
- private String cIDepCode;
- // 鍏ュ簱绫诲埆缂栫爜
- private String cIRdCode = "105";
- // 鍑哄簱绫诲埆缂栫爜
- private String cORdCode = "205";
- // 鍒跺崟浜�
private String cMaker = "WMS绠$悊鍛�";
- // 瀹℃牳浜�
+ // 杞嚭閮ㄩ棬缂栫爜
private String cVerifyPerson = "WMS绠$悊鍛�";
- // 瀹℃牳鏃ユ湡
- private String dVerifyDate; //蹇呭~
+ // 杞嚭浠撳簱缂栫爜
+ private String cAVMemo = "澶囨敞";
+ private String cAVCode;
private List<Detl> detail = new ArrayList<>();
+
+ public YXErpPakinParam() {
+ this.dTVDate = DateUtils.convert(new Date(), DateUtils.yyyyMMdd_F);
+ this.dAVDate = DateUtils.convert(new Date(), DateUtils.yyyyMMdd_F);
+ this.dVerifyDate = DateUtils.convert(new Date(), DateUtils.yyyyMMdd_F);
+ }
+
+ public YXErpPakinParam(String cAVCod, String cAVMemo) {
+ this.dTVDate = DateUtils.convert(new Date(), DateUtils.yyyyMMdd_F);
+ this.dAVDate = DateUtils.convert(new Date(), DateUtils.yyyyMMdd_F);
+ this.dVerifyDate = DateUtils.convert(new Date(), DateUtils.yyyyMMdd_F);
+ this.cAVCode = cAVCod;
+ this.cAVMemo = cAVMemo;
+ }
+
+ public YXErpPakinParam(String dTVDate, String cAVMemo, String cAVCod, List<Detl> detail) {
+ this.dTVDate = DateUtils.convert(new Date(), DateUtils.yyyyMMdd_F);
+ this.dAVDate = DateUtils.convert(new Date(), DateUtils.yyyyMMdd_F);
+ this.dVerifyDate = DateUtils.convert(new Date(), DateUtils.yyyyMMdd_F);
+ this.dTVDate = dTVDate;
+ this.cAVMemo = cAVMemo;
+ this.cAVCode = cAVCod;
+ this.detail = detail;
+ }
+
+ public YXErpPakinParam(String cODepCode, String cIRdCode, String cORdCode, String cAVMemo, String cMaker, String cVerifyPerson, List<Detl> detail) {
+ this.dTVDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
+ this.dAVDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
+ this.dVerifyDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
+ this.cODepCode = cODepCode;
+ this.cIRdCode = cIRdCode;
+ this.cORdCode = cORdCode;
+ this.cAVMemo = cAVMemo;
+ this.cMaker = cMaker;
+ this.cVerifyPerson = cVerifyPerson;
+ this.detail = detail;
+ }
@Data
public static class Detl {
// 搴撳瓨璋冩嫧鍗曞彿
- private String cTVCode; //蹇呭~
+ private String cbMemo; //蹇呭~
// 鐗╂枡缂栫爜 瀛樿揣缂栫爜
+ private String cAVCode; //蹇呭~
+ private String cWhCode; //蹇呭~
private String cInvCode; //蹇呭~
-
- // 鐗╂枡鏉$爜
-// private String barcode;
-
- // 鏁伴噺
-// private Double anfme;
- private Double iTVQuantity; //蹇呭~
+ private double iAVQuantity; //蹇呭~
+ private String cAVBatch; //蹇呭~
+ private String bAVType; //蹇呭~
+ private Integer iGroupNO; //蹇呭~
public Detl() {
}
- public Detl(String cTVCode, String cInvCode, Double iTVQuantity) {
- this.cTVCode = cTVCode;
- this.cInvCode = cInvCode;
- this.iTVQuantity = iTVQuantity;
+ public Detl(OrderDetl orderDetl,boolean bool) {
+ if (bool){
+ Detl1(orderDetl);
+ } else {
+ Detl2(orderDetl);
+ }
+
+ }
+ public void Detl1(OrderDetl orderDetl) {
+ this.cbMemo = orderDetl.getMemo();
+ this.cAVCode = orderDetl.getOrderNo();
+ this.cWhCode = "100";
+// this.cInvCode = orderDetl.getMatnr$();
+ this.cInvCode = "XJ0001";
+ this.iAVQuantity = orderDetl.getWeight();
+ this.cAVBatch = orderDetl.getBatch();
+ this.bAVType = "杞崲鍓�";
+ this.iGroupNO = 1;
+ }
+
+ public void Detl2(OrderDetl orderDetl) {
+ this.cbMemo = orderDetl.getMemo();
+ this.cAVCode = orderDetl.getOrderNo();
+ this.cWhCode = "201";
+ this.cInvCode = orderDetl.getMatnr();
+ this.iAVQuantity = orderDetl.getWeight();
+ this.cAVBatch = orderDetl.getBatch();
+ this.bAVType = "杞崲鍚�";
+ this.iGroupNO = 1;
}
}
--
Gitblit v1.9.1