From 9fe1ec3afe8696c628d076d1f76686c4efc3012e Mon Sep 17 00:00:00 2001
From: zc <zyzc>
Date: 星期二, 21 十月 2025 10:49:55 +0800
Subject: [PATCH] 容器初始化功能优化
---
rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/excel/MatnrsTemplate.java | 73 +++++++++++++++++++++++++-----------
1 files changed, 51 insertions(+), 22 deletions(-)
diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/excel/MatnrsTemplate.java b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/excel/MatnrsTemplate.java
index 688ab4d..3c3945e 100644
--- a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/excel/MatnrsTemplate.java
+++ b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/excel/MatnrsTemplate.java
@@ -1,16 +1,15 @@
package com.vincent.rsf.server.manager.entity.excel;
-import cn.afterturn.easypoi.excel.annotation.Excel;
import com.vincent.rsf.server.manager.entity.excel.annotation.ExcelAutoColumnSize;
import com.vincent.rsf.server.manager.entity.excel.annotation.ExcelComment;
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import lombok.ToString;
+import cn.afterturn.easypoi.excel.annotation.Excel;
+import javax.validation.constraints.NotNull;
import lombok.experimental.Accessors;
+import lombok.Data;
-import java.io.Serializable;
/**
+ *
* @author Ryan
* @version 1.0
* @title MatnrsTemplate
@@ -20,30 +19,50 @@
@Data
@ExcelAutoColumnSize
@Accessors(chain = true)
-@ToString(callSuper = true)
-@EqualsAndHashCode(callSuper = false)
-public class MatnrsTemplate implements Serializable {
+public class MatnrsTemplate {
- @Excel(name = "鐗╂枡鍚嶇О")
+ @NotNull
+ @Excel(name = "鐗╂枡鍚嶇О*")
@ExcelComment(example = "鍗庝负鎵嬫満")
private String name;
- @Excel(name = "鍒嗙被鍔╄鐮�")
- @ExcelComment(example = "256874556")
- private String groupCode;
+ @NotNull
+ @Excel(name = "鐗╂枡缂栫爜*")
+ @ExcelComment(example = "matnr123")
+ private String code;
- @Excel(name = "鍒嗙被鍚嶇О")
- @ExcelComment(example = "绉诲姩璁惧")
- private String groupName;
- @Excel(name = "鐗╂枡鍔╄鐮�")
- @ExcelComment(example = "P3528461569")
- private String erpCode;
+ @Excel(name = "璐т富鏍囪瘑")
+ @ExcelComment(example = "123")
+ private String shipperId;
+
+ @NotNull
+ @Excel(name = "鐗╂枡鍒嗙粍")
+ @ExcelComment(example = "鎵嬫満")
+ private String groupId;
+
+
+ @Excel(name = "ERP缂栫爜")
+ @ExcelComment(example = "erp001")
+ private String platCode;
+
+ @NotNull
@Excel(name = "瑙勬牸")
@ExcelComment(example = "HW-148*68*10")
private String spec;
+ @NotNull
+ @Excel(name = "鍒嗙被鍚嶇О*")
+ @ExcelComment(example = "绉诲姩璁惧")
+ private String groupName;
+
+ @NotNull
+ @Excel(name = "鐗╂枡鍔╄鐮�*")
+ @ExcelComment(example = "P3528461569")
+ private String erpCode;
+
+ @NotNull
@Excel(name = "鍨嬪彿")
@ExcelComment(example = "鍗庝负涓夋姌鍙�")
private String model;
@@ -56,7 +75,7 @@
@ExcelComment(notNull = false, example = "绱孩鑹�")
private String color;
- @Excel(name = "澶у皬")
+ @Excel(name = "灏哄")
@ExcelComment(notNull = false, example = "148*68*10")
private String size;
@@ -64,17 +83,27 @@
@ExcelComment(notNull = false, example = "鏂颁笂甯備笁鎶樺彔")
private String describle;
- @Excel(name = "鎻忚堪")
+ @Excel(name = "鏍囧寘鏁伴噺")
@ExcelComment(notNull = false, example = "鏂颁笂甯備笁鎶樺彔")
private String nromNum;
- @Excel(name = "涓诲崟浣�")
+ @NotNull
+ @Excel(name = "鍗曚綅")
@ExcelComment(example = "閮�")
private String unit;
@Excel(name = "閲囪喘鍗曚綅")
@ExcelComment(example = "閮�")
private String purUnit;
+
+ @Excel(name = "搴撲綅鍗曚綅")
+ @ExcelComment(example = "閮�")
+ private String stockUnit;
+
+ @NotNull
+ @Excel(name = "鍒嗙被鍔╄鐮�*")
+ @ExcelComment(example = "256874556")
+ private String groupCode;
@Excel(name = "ABC绫�")
@ExcelComment(notNull = false, example = "0")
@@ -88,6 +117,7 @@
@ExcelComment(notNull = false, example = "10")
private String minQty;
+ @NotNull
@Excel(name = "鏈�澶у簱瀛橀噺")
@ExcelComment(notNull = false, example = "150")
private String maxQty;
@@ -111,6 +141,5 @@
@Excel(name = "鏄惁鍏嶆")
@ExcelComment(notNull = false, example = "0")
private String flagCheck;
-
}
--
Gitblit v1.9.1