From b91211bcb11e4bbe2e827de0510d90d65c25e965 Mon Sep 17 00:00:00 2001
From: wang..123 <brook_w@163.com>
Date: 星期五, 11 二月 2022 09:15:39 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/common/utils/excel/matcode/MatCodeExcel.java | 89 +++++++++++++-------------------------------
1 files changed, 27 insertions(+), 62 deletions(-)
diff --git a/src/main/java/com/zy/common/utils/excel/matcode/MatCodeExcel.java b/src/main/java/com/zy/common/utils/excel/matcode/MatCodeExcel.java
index 08cb54b..a61df20 100644
--- a/src/main/java/com/zy/common/utils/excel/matcode/MatCodeExcel.java
+++ b/src/main/java/com/zy/common/utils/excel/matcode/MatCodeExcel.java
@@ -19,26 +19,41 @@
// @ExcelProperty(value= "鏉″舰鐮�", index = 4)
private String barcode;
- @ExcelProperty(value= "浜у搧鍚嶇О", index = 3)
+ @ExcelProperty(value= "浜у搧鍚嶇О", index = 1)
private String matName;
- @ExcelProperty(value= "鍩烘湰鍗曚綅", index = 12)
+ @ExcelProperty(value= "瑙勬牸", index = 2)
+ private String specs;
+
+ @ExcelProperty(value= "鍗曚綅", index = 3)
+ private String unit;
+
+ @ExcelProperty(value= "灏哄", index = 4)
+ private String size;
+
+ @ExcelProperty(value= "棰滆壊", index = 5)
+ private String color;
+
+ @ExcelProperty(value= "鍗曢噸", index = 6)
+ private Double weight;
+
+// @ExcelProperty(value= "", index = 12)
private String str1;
- @ExcelProperty(value= "瑙勬牸鍨嬪彿", index = 5)
+// @ExcelProperty(value= "", index = 5)
private String str2;
- @ExcelProperty(value= "棰滆壊鍚嶇О", index = 28)
+// @ExcelProperty(value= "", index = 28)
private String str3;
- @ExcelProperty(value= "搴撲綅鍚嶇О", index = 14)
+// @ExcelProperty(value= "", index = 14)
private String str4;
// @ExcelProperty(value= "鍔╄鐮�", index = 7)
private String str5;
// @ExcelProperty(value= "榛樿渚涘簲鍟�", index = 10)
- private String str6;
+ private double str6;
// @ExcelProperty(value= "榛樿浠撳簱", index = 13)
private String str7;
@@ -51,45 +66,6 @@
// @ExcelProperty(value= "浜у湴", index = 12)
private String str10;
-
-// @ExcelProperty(value= "搴忓垪鍙风鐞�")
- private String str11;
-
-// @ExcelProperty(value= "鎵规绠$悊")
- private String str12;
-
-// @ExcelProperty(value= "淇濊川鏈熷崟浣�")
- private String str13;
-
-// @ExcelProperty(value= "淇濊川鏈熺鐞�")
- private String str14;
-
-// @ExcelProperty(value= "淇濊川鏈�")
- private String str15;
-
-// @ExcelProperty(value= "鍙攢鍞�", index = 20)
- private String str16;
-
-// @ExcelProperty(value= "鍙噰璐�", index = 21)
- private String str17;
-
-// @ExcelProperty(value= "鍙负瀛愪欢", index = 22)
- private String str18;
-
-// @ExcelProperty(value= "鍙负缁勪欢", index = 23)
- private String str19;
-
-// @ExcelProperty(value= "杈呭姪灞炴�х鐞�")
- private String str20;
-
-// @ExcelProperty(value= "鎴愭湰璁$畻鏂规硶", index = 29)
- private String str21;
-
-// @ExcelProperty(value= "閲囪喘鍗曚綅", index = 30)
- private String str22;
-
-// @ExcelProperty(value= "閿�鍞崟浣�", index = 31)
- private String str23;
// @ExcelProperty(value= "閲嶉噺", index = 7)
private Double num1;
@@ -106,15 +82,18 @@
// @ExcelProperty(value= "绋庣巼")
private Double num5;
- private Double num6;
-
public MatCodeExcel() {
}
- public MatCodeExcel(String matNo, String barcode, String matName, String str1, String str2, String str3, String str4, String str5, String str6, String str7, String str8, String str9, String str10, String str11, String str12, String str13, String str14, String str15, String str16, String str17, String str18, String str19, String str20, String str21, String str22, String str23, Double num1, Double num2, Double num3, Double num4, Double num5, Double num6) {
+ public MatCodeExcel(String matNo, String barcode, String matName,String specs,String unit,String size,String color,Double weight, String str1, String str2, String str3, String str4, String str5, Double str6, String str7, String str8, String str9, String str10,Double num1, Double num2, Double num3, Double num4, Double num5) {
this.matNo = matNo;
this.barcode = barcode;
this.matName = matName;
+ this.specs = specs;
+ this.unit = unit;
+ this.size = size;
+ this.color = color;
+ this.weight = weight;
this.str1 = str1;
this.str2 = str2;
this.str3 = str3;
@@ -125,25 +104,11 @@
this.str8 = str8;
this.str9 = str9;
this.str10 = str10;
- this.str11 = str11;
- this.str12 = str12;
- this.str13 = str13;
- this.str14 = str14;
- this.str15 = str15;
- this.str16 = str16;
- this.str17 = str17;
- this.str18 = str18;
- this.str19 = str19;
- this.str20 = str20;
- this.str21 = str21;
- this.str22 = str22;
- this.str23 = str23;
this.num1 = num1;
this.num2 = num2;
this.num3 = num3;
this.num4 = num4;
this.num5 = num5;
- this.num6 = num6;
}
}
--
Gitblit v1.9.1