自动化立体仓库 - WMS系统
wang..123
2022-03-01 a34dafbbfa35432f9dc262779d9e6b6318ff2128
src/main/java/com/zy/common/utils/excel/matcode/MatCodeExcel.java
@@ -1,79 +1,114 @@
package com.zy.common.utils.excel.matcode;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
/**
 * Created by vincent on 2020/6/6
 * 0.A 1.B 2.C 3.D 4.E 5.F 6.G 7.H 8.I
 * 9.J 10.K 11.L 12.M 13.N 14.O 15.P 16.Q 17.R 18.S
 * 19.T 20.U 21.V 22.W 23.X 24.Y 25.Z
 */
@Data
@ExcelIgnoreUnannotated
public class MatCodeExcel {
    /**
     * 物料编码
     */
    @ExcelProperty(value = "物料编码", index = 0)
    @ExcelProperty(value= "产品代号*", index = 0)
    private String matNo;
    /**
     * 条码
     */
    @ExcelProperty(value = "条码", index = 1)
//    @ExcelProperty(value= "条形码", index = 4)
    private String barcode;
    /**
     * 物料名称
     */
    @ExcelProperty(value = "物料名称", index = 2)
    @ExcelProperty(value= "产品名称", index = 1)
    private String matName;
    /**
     * 物料单位
     */
    @ExcelProperty(value = "物料单位", index = 3)
    @ExcelProperty(value= "规格", index = 2)
    private String specs;
    @ExcelProperty(value= "单位", index = 3)
    private String unit;
   // @ExcelProperty(value= "尺寸", index = 4)
    private String size;
    @ExcelProperty(value= "颜色", index = 4)
    private String color;
    @ExcelProperty(value= "每箱重量(KG)", index = 5)
    private Double weight;
    //@ExcelProperty(value= "", index = 7)
    private String str1;
    /**
     * 物料规格
     */
    @ExcelProperty(value = "物料规格", index = 4)
  // @ExcelProperty(value= "物料规格", index = 7)
    private String str2;
    public String getMatNo() {
        return matNo;
   @ExcelProperty(value= "客户名称", index = 6)
    private String str3;
    @ExcelProperty(value= "项目信息", index = 7)
    private String str4;
    @ExcelProperty(value= "类别", index = 8)
    private String str5;
    @ExcelProperty(value= "每箱数量(PCS)", index = 9)
    private Double str6;
//    @ExcelProperty(value= "默认仓库", index = 13)
    private String str7;
//    @ExcelProperty(value= "品牌", index = 9)
    private String str8;
//    @ExcelProperty(value= "采购员", index = 11)
    private String str9;
//    @ExcelProperty(value= "产地", index = 12)
    private String str10;
//    @ExcelProperty(value= "重量", index = 7)
    private Double num1;
//    @ExcelProperty(value= "最低库存数量")
    private Double num2;
//    @ExcelProperty(value= "最高库存数量")
    private Double num3;
//    @ExcelProperty(value= "安全库存")
    private Double num4;
//    @ExcelProperty(value= "税率")
    private Double num5;
    public MatCodeExcel() {
    }
    public void setMatNo(String matNo) {
    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;
    }
    public String getBarcode() {
        return barcode;
    }
    public void setBarcode(String barcode) {
        this.barcode = barcode;
    }
    public String getMatName() {
        return matName;
    }
    public void setMatName(String matName) {
        this.matName = matName;
    }
    public String getStr1() {
        return str1;
    }
    public void setStr1(String str1) {
        this.specs = specs;
        this.unit = unit;
        this.size = size;
        this.color = color;
        this.weight = weight;
        this.str1 = str1;
    }
    public String getStr2() {
        return str2;
    }
    public void setStr2(String str2) {
        this.str2 = str2;
        this.str3 = str3;
        this.str4 = str4;
        this.str5 = str5;
        this.str6 = str6;
        this.str7 = str7;
        this.str8 = str8;
        this.str9 = str9;
        this.str10 = str10;
        this.num1 = num1;
        this.num2 = num2;
        this.num3 = num3;
        this.num4 = num4;
        this.num5 = num5;
    }
}