From c2478aba3b4db1f7c97ddd40eb636eed42368f28 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期一, 25 八月 2025 16:39:50 +0800
Subject: [PATCH] 库存调整单功能优化修改
---
rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/excel/AsnOrderTemplate.java | 217 ++++++++++++++++++++++++++++++++++++++---------------
1 files changed, 154 insertions(+), 63 deletions(-)
diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/excel/AsnOrderTemplate.java b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/excel/AsnOrderTemplate.java
index 54f5883..dbcc443 100644
--- a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/excel/AsnOrderTemplate.java
+++ b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/excel/AsnOrderTemplate.java
@@ -3,14 +3,13 @@
import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
+import com.fasterxml.jackson.annotation.JsonFormat;
import com.vincent.rsf.server.manager.entity.excel.annotation.ExcelAutoColumnSize;
import com.vincent.rsf.server.manager.entity.excel.annotation.ExcelComment;
-import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
-import lombok.EqualsAndHashCode;
-import lombok.ToString;
import lombok.experimental.Accessors;
+import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
@@ -24,87 +23,179 @@
@Data
@ExcelAutoColumnSize
@Accessors(chain = true)
-@ToString(callSuper = true)
-@EqualsAndHashCode(callSuper = false)
-public class AsnOrderTemplate implements IExcelModel, IExcelDataModel, Serializable {
+public class AsnOrderTemplate {
+
+ /**
+ * 缂栧彿
+ */
+ @Excel(name = "*ASN鍗曞彿")
+ @ApiModelProperty(value = "*ASN鍗曞彿")
+ @ExcelComment(value = "code", example = "ASN5945272236")
+ private String code;
+
+ /**
+ * PO鍗曞彿
+ */
+ @Excel(name = "PO鍗曞彿")
+ @ApiModelProperty(value = "PO鍗曞彿")
+ @ExcelComment(value = "poCode", example = "PO59755695")
+ private String poCode;
+
+// /**
+// * PO鍗曟嵁鏍囪瘑
+// */
+// @Excel(name = "PO鍗曟嵁鏍囪瘑")
+// @ApiModelProperty(value= "PO鍗曟嵁鏍囪瘑")
+// @ExcelComment(value = "poId", example = "123456698")
+// private String poId;
@Excel(name = "琛屽彿")
+ @ApiModelProperty("琛屽彿")
@ExcelComment(value = "platItemId", example = "1357564255478")
private String platItemId;
+ @Excel(name = "瀹㈡埛璁㈠崟鍙�")
+ @ApiModelProperty("瀹㈡埛璁㈠崟鍙�")
+ @ExcelComment(value = "platOrderCode", example = "PT202564713301")
+ private String platOrderCode;
+
+ @Excel(name = "宸ュ崟鍙�")
+ @ApiModelProperty("宸ュ崟鍙�")
+ @ExcelComment(value = "platWorkCode", example = "PWC2354894211")
+ private String platWorkCode;
+
+ @Excel(name = "椤圭洰鍙�")
+ @ApiModelProperty("椤圭洰鍙�")
+ @ExcelComment(value = "projectCode", example = "PC2365845636001")
+ private String projectCode;
+
+ /**
+ * 鍗曟嵁绫诲瀷
+ */
+ @Excel(name = "*鍗曟嵁绫诲瀷")
+ @ApiModelProperty(value = "*鍗曟嵁绫诲瀷")
+ @ExcelComment(value = "type", example = "鍏ュ簱鍗�")
+ private String type;
+
+ /**
+ * 涓氬姟绫诲瀷
+ */
+ @Excel(name = "*涓氬姟绫诲瀷")
+ @ApiModelProperty(value = "*涓氬姟绫诲瀷")
+ @ExcelComment(value = "wkType", example = "閲囪喘鍏ュ簱鍗�")
+ private String wkType;
+
+
+// @Excel(name = "鎵ц鐘舵��")
+// @ApiModelProperty(value= "鎵ц鐘舵��")
+// @ExcelComment(value = "exceStatus", example = "0")
+// private String exceStatus;
+
+
+ @Excel(name = "*鐗╂枡缂栫爜")
+ @ApiModelProperty("*鐗╂枡缂栫爜")
+ @ExcelComment(value = "matnrCode", example = "102010101545")
+ private String matnrCode;
+
+
@Excel(name = "鐗╂枡鍚嶇О")
- @ExcelComment(value = "matnk",example = "鐗╂枡鍚嶇О")
- private String matnk;
+ @ApiModelProperty("鐗╂枡鍚嶇О")
+ @ExcelComment(value = "maktx", example = "澶╃憺019-澶鍨嬫敮鏋�-55椋炴満杞粦鑹诧紝涓夎杞洊鍠锋紗閾惰壊 锛堝甫鏀讳笣閽夛級鍙�")
+ private String maktx;
- @Excel(name = "鏁伴噺")
- @ExcelComment(value = "anfme",example = "25")
- private Double anfme;
- @Excel(name = "搴撳瓨鍗曚綅")
- @ExcelComment(value = "stockUnit",example = "涓�")
- private String stockUnit;
-
- @Excel(name = "閲囪喘鏁伴噺")
- @ExcelComment(value = "purQty",example = "25")
- private Double purQty;
-
- @Excel(name = "閲囪喘鍗曚綅")
- @ExcelComment(value = "purUnit",example = "涓�")
- private String purUnit;
-
- @Excel(name = "宸插畬鎴愭暟閲�")
- @ExcelComment(value = "qty",example = "25")
- private Double qty;
-
+ // @Excel(name = "鐗╂枡瑙勬牸")
+// @ApiModelProperty("鐗╂枡瑙勬牸")
+// @ExcelComment(value = "maktx",example = "2*3*6")
+// private String spec;
+//
+//
+// @Excel(name = "鐗╂枡鍨嬪彿")
+// @ApiModelProperty("鐗╂枡鍨嬪彿")
+// @ExcelComment(value = "maktx",example = "abc")
+// private String model;
@Excel(name = "渚涘簲鍟嗙紪鐮�")
- @ExcelComment(value = "splrCode",example = "3654821")
+ @ApiModelProperty("渚涘簲鍟嗙紪鐮�")
+ @ExcelComment(value = "splrCode", example = "685947")
private String splrCode;
@Excel(name = "渚涘簲鍟嗗悕绉�")
- @ExcelComment(value = "splrName",example = "娴欐睙涓壃鎶�鏈叕鍙�")
+ @ApiModelProperty("渚涘簲鍟嗗悕绉�")
+ @ExcelComment(value = "splrName", example = "娴欐睙涓壃绔嬪簱鎶�鏈湁闄愬叕鍙�")
private String splrName;
+
+// @Excel(name = "搴撳瓨鍗曚綅")
+// @ApiModelProperty("搴撳瓨鍗曚綅")
+// @ExcelComment(value = "stockUnit", example = "涓�")
+// private String stockUnit;
+
+// @Excel(name = "閲囪喘鏁伴噺")
+// @ApiModelProperty("閲囪喘鏁伴噺")
+// @ExcelComment(value = "purQty", example = "0")
+// private String purQty;
+//
+// @Excel(name = "閲囪喘鍗曚綅")
+// @ApiModelProperty("閲囪喘鍗曚綅")
+// @ExcelComment(value = "purUnit", example = "涓�")
+// private String purUnit;
+
+// @Excel(name = "宸插畬鎴愭暟閲�")
+// @ApiModelProperty("宸插畬鎴愭暟閲�")
+// @ExcelComment(value = "qty", example = "0")
+// private String qty;
+
+
@Excel(name = "渚涘簲鍟嗘壒娆�")
- @ExcelComment(value = "splrBatch",example = "25251212")
+ @ApiModelProperty("渚涘簲鍟嗘壒娆�")
+ @ExcelComment(value = "splrBatch", example = "25251212")
private String splrBatch;
- @Excel(name = "浜岀淮鐮�")
- @ExcelComment(value = "qrcode",example = "")
- private String qrcode;
+ @Excel(name = "*鏁伴噺")
+ @ApiModelProperty("*鏁伴噺")
+ @ExcelComment(value = "anfme", example = "75")
+ private String anfme;
- @Excel(name = "鏉″舰鐮�")
- @ExcelComment(value = "barcode",example = "2354788")
- private String barcode;
- @Excel(name = "鍖呰鍚嶇О")
- @ExcelComment(value = "packName",example = "绠�")
- private String packName;
+// @Excel(name = "浜岀淮鐮�")
+// @ApiModelProperty("浜岀淮鐮�")
+// @ExcelComment(value = "qrcode",example = "")
+// private String qrcode;
+
+ // @Excel(name = "鏉″舰鐮�")
+// @ApiModelProperty("鏉″舰鐮�")
+// @ExcelComment(value = "barcode", example = "")
+// private String barcode;
+//
+// @Excel(name = "璺熻釜鐮�")
+// @ApiModelProperty("璺熻釜鐮�")
+// @ExcelComment(value = "trackCode", example = "")
+// private String trackCode;
+ @Excel(name = "鐗╂祦鍗曞彿")
+ @ApiModelProperty("鐗╂祦鍗曞彿")
+ @ExcelComment(value = "logicNo", example = "SF100064851")
+ private String logicNo;
+
+
+ @Excel(name = "璐ㄦ鐘舵��")
+ @ApiModelProperty("璐ㄦ鐘舵��")
+ @ExcelComment(value = "isptResult", example = "鍚堟牸")
+ private String isptResult;
+
+
+ @Excel(name = "棰勮閫佽揪鏃堕棿")
+ @ApiModelProperty("棰勮閫佽揪鏃堕棿")
+ @ExcelComment(value = "arrTime", example = "2025-05-21")
+ private String arrTime;
+
+// @Excel(name = "鍖呰鍚嶇О")
+// @ApiModelProperty("鍖呰鍚嶇О")
+// @ExcelComment(value = "packName", example = "绠�")
+// private String packName;
@Excel(name = "澶囨敞")
- @ExcelComment(value = "memo",example = "娉細鏄撶鍝侊紝杞绘嬁鏀�")
+ @ApiModelProperty("澶囨敞")
+ @ExcelComment(value = "memo", example = "娉細鏄撶鍝侊紝杞绘嬁鏀�")
private String memo;
- private Integer rowNum;
-
- private String errorMsg;
-
- @Override
- public Integer getRowNum() {
- return this.rowNum;
- }
-
- @Override
- public void setRowNum(Integer rowNum) {
- this.rowNum = rowNum;
- }
-
- @Override
- public String getErrorMsg() {
- return this.errorMsg;
- }
-
- @Override
- public void setErrorMsg(String errorMsg) {
- this.errorMsg = errorMsg;
- }
}
--
Gitblit v1.9.1