|
@ -1,6 +1,7 @@ |
|
|
package com.win.module.wms.controller.itembasic.vo; |
|
|
package com.win.module.wms.controller.itembasic.vo; |
|
|
|
|
|
|
|
|
import com.alibaba.excel.annotation.ExcelProperty; |
|
|
import com.alibaba.excel.annotation.ExcelProperty; |
|
|
|
|
|
import com.alibaba.excel.annotation.write.style.ColumnWidth; |
|
|
import com.win.framework.excel.core.annotations.DictFormat; |
|
|
import com.win.framework.excel.core.annotations.DictFormat; |
|
|
import com.win.framework.excel.core.convert.DictConvert; |
|
|
import com.win.framework.excel.core.convert.DictConvert; |
|
|
import com.win.module.wms.enums.DictTypeConstants; |
|
|
import com.win.module.wms.enums.DictTypeConstants; |
|
@ -10,6 +11,8 @@ import lombok.Data; |
|
|
import lombok.NoArgsConstructor; |
|
|
import lombok.NoArgsConstructor; |
|
|
import lombok.experimental.Accessors; |
|
|
import lombok.experimental.Accessors; |
|
|
|
|
|
|
|
|
|
|
|
import java.time.LocalDateTime; |
|
|
|
|
|
|
|
|
@Data |
|
|
@Data |
|
|
@Builder |
|
|
@Builder |
|
|
@AllArgsConstructor |
|
|
@AllArgsConstructor |
|
@ -20,6 +23,15 @@ public class ItembasicImportExcelVo { |
|
|
@ExcelProperty("代码") |
|
|
@ExcelProperty("代码") |
|
|
private String code; |
|
|
private String code; |
|
|
|
|
|
|
|
|
|
|
|
@ExcelProperty("名称") |
|
|
|
|
|
private String name; |
|
|
|
|
|
|
|
|
|
|
|
@ExcelProperty("描述1") |
|
|
|
|
|
private String desc1; |
|
|
|
|
|
|
|
|
|
|
|
@ExcelProperty("描述2") |
|
|
|
|
|
private String desc2; |
|
|
|
|
|
|
|
|
@ExcelProperty(value = "状态", converter = DictConvert.class) |
|
|
@ExcelProperty(value = "状态", converter = DictConvert.class) |
|
|
@DictFormat(DictTypeConstants.ITEM_STATUS) |
|
|
@DictFormat(DictTypeConstants.ITEM_STATUS) |
|
|
private String status; |
|
|
private String status; |
|
@ -28,6 +40,10 @@ public class ItembasicImportExcelVo { |
|
|
@DictFormat(DictTypeConstants.UOM) |
|
|
@DictFormat(DictTypeConstants.UOM) |
|
|
private String uom; |
|
|
private String uom; |
|
|
|
|
|
|
|
|
|
|
|
@ExcelProperty(value = "替代计量单位", converter = DictConvert.class) |
|
|
|
|
|
@DictFormat(DictTypeConstants.UOM) |
|
|
|
|
|
private String altUom; |
|
|
|
|
|
|
|
|
@ExcelProperty(value = "是否标包", converter = DictConvert.class) |
|
|
@ExcelProperty(value = "是否标包", converter = DictConvert.class) |
|
|
@DictFormat(DictTypeConstants.TRUE_FALSE) |
|
|
@DictFormat(DictTypeConstants.TRUE_FALSE) |
|
|
private String isStdPack; |
|
|
private String isStdPack; |
|
@ -59,6 +75,30 @@ public class ItembasicImportExcelVo { |
|
|
@ExcelProperty(value = "类型", converter = DictConvert.class) |
|
|
@ExcelProperty(value = "类型", converter = DictConvert.class) |
|
|
@DictFormat(DictTypeConstants.ITEM_TYPE) |
|
|
@DictFormat(DictTypeConstants.ITEM_TYPE) |
|
|
private String type; |
|
|
private String type; |
|
|
|
|
|
|
|
|
|
|
|
@ExcelProperty(value = "种类", converter = DictConvert.class) |
|
|
|
|
|
@DictFormat(DictTypeConstants.ITEM_CATEGORY) |
|
|
|
|
|
private String category; |
|
|
|
|
|
|
|
|
|
|
|
@ExcelProperty(value = "分组", converter = DictConvert.class) |
|
|
|
|
|
@DictFormat(DictTypeConstants.ITEM_GROUP) |
|
|
|
|
|
private String itemGroup; |
|
|
|
|
|
|
|
|
|
|
|
@ExcelProperty(value = "颜色", converter = DictConvert.class) |
|
|
|
|
|
@DictFormat(DictTypeConstants.ITEM_COLOR) |
|
|
|
|
|
private String color; |
|
|
|
|
|
|
|
|
|
|
|
@ExcelProperty(value = "配置", converter = DictConvert.class) |
|
|
|
|
|
@DictFormat(DictTypeConstants.ITEM_CONFIGURATION) |
|
|
|
|
|
private String configuration; |
|
|
|
|
|
|
|
|
|
|
|
@ExcelProperty(value = "项目") |
|
|
|
|
|
private String project; |
|
|
|
|
|
|
|
|
|
|
|
@ExcelProperty(value = "质量等级", converter = DictConvert.class) |
|
|
|
|
|
@DictFormat(DictTypeConstants.EQ_LEVEL) |
|
|
|
|
|
private String eqLevel; |
|
|
|
|
|
|
|
|
@ExcelProperty(value = "有效天数") |
|
|
@ExcelProperty(value = "有效天数") |
|
|
private Integer validityDays; |
|
|
private Integer validityDays; |
|
|
|
|
|
|
|
@ -66,5 +106,14 @@ public class ItembasicImportExcelVo { |
|
|
@DictFormat(DictTypeConstants.TRUE_FALSE) |
|
|
@DictFormat(DictTypeConstants.TRUE_FALSE) |
|
|
private String available; |
|
|
private String available; |
|
|
|
|
|
|
|
|
|
|
|
@ExcelProperty(value = "生效时间") |
|
|
|
|
|
@ColumnWidth(value = 16) |
|
|
|
|
|
private LocalDateTime activeTime; |
|
|
|
|
|
|
|
|
|
|
|
@ExcelProperty(value = "失效时间") |
|
|
|
|
|
@ColumnWidth(value = 16) |
|
|
|
|
|
private LocalDateTime expireTime; |
|
|
|
|
|
|
|
|
|
|
|
@ExcelProperty(value = "备注") |
|
|
|
|
|
private String remark; |
|
|
} |
|
|
} |
|
|