forked from sfms3.0/sfms3.0
6 changed files with 185 additions and 23 deletions
@ -0,0 +1,70 @@ |
|||||
|
package com.win.module.wms.controller.itembasic.vo; |
||||
|
|
||||
|
import com.alibaba.excel.annotation.ExcelProperty; |
||||
|
import com.win.framework.excel.core.annotations.DictFormat; |
||||
|
import com.win.framework.excel.core.convert.DictConvert; |
||||
|
import com.win.module.wms.enums.DictTypeConstants; |
||||
|
import lombok.AllArgsConstructor; |
||||
|
import lombok.Builder; |
||||
|
import lombok.Data; |
||||
|
import lombok.NoArgsConstructor; |
||||
|
import lombok.experimental.Accessors; |
||||
|
|
||||
|
@Data |
||||
|
@Builder |
||||
|
@AllArgsConstructor |
||||
|
@NoArgsConstructor |
||||
|
@Accessors(chain = false) // 设置 chain = false,避免用户导入有问题
|
||||
|
public class ItembasicImportExcelVo { |
||||
|
|
||||
|
@ExcelProperty("代码") |
||||
|
private String code; |
||||
|
|
||||
|
@ExcelProperty(value = "状态", converter = DictConvert.class) |
||||
|
@DictFormat(DictTypeConstants.ITEM_STATUS) |
||||
|
private Integer status; |
||||
|
|
||||
|
@ExcelProperty(value = "计量单位", converter = DictConvert.class) |
||||
|
@DictFormat(DictTypeConstants.UOM) |
||||
|
private Integer uom; |
||||
|
|
||||
|
@ExcelProperty(value = "是否标包", converter = DictConvert.class) |
||||
|
@DictFormat(DictTypeConstants.TRUE_FALSE) |
||||
|
private Integer isStdPack; |
||||
|
|
||||
|
@ExcelProperty(value = "可采购", converter = DictConvert.class) |
||||
|
@DictFormat(DictTypeConstants.TRUE_FALSE) |
||||
|
private Integer enableBuy; |
||||
|
|
||||
|
@ExcelProperty(value = "可制造", converter = DictConvert.class) |
||||
|
@DictFormat(DictTypeConstants.TRUE_FALSE) |
||||
|
private Integer enableMake; |
||||
|
|
||||
|
@ExcelProperty(value = "可委外加工", converter = DictConvert.class) |
||||
|
@DictFormat(DictTypeConstants.TRUE_FALSE) |
||||
|
private Integer enableOutsourcing; |
||||
|
|
||||
|
@ExcelProperty(value = "回收件", converter = DictConvert.class) |
||||
|
@DictFormat(DictTypeConstants.TRUE_FALSE) |
||||
|
private Integer isRecycled; |
||||
|
|
||||
|
@ExcelProperty(value = "虚零件", converter = DictConvert.class) |
||||
|
@DictFormat(DictTypeConstants.TRUE_FALSE) |
||||
|
private Integer isPhantom; |
||||
|
|
||||
|
@ExcelProperty(value = "ABC类", converter = DictConvert.class) |
||||
|
@DictFormat(DictTypeConstants.ABC_CLASS) |
||||
|
private Integer abcClass; |
||||
|
|
||||
|
@ExcelProperty(value = "类型", converter = DictConvert.class) |
||||
|
@DictFormat(DictTypeConstants.ITEM_TYPE) |
||||
|
private Integer type; |
||||
|
@ExcelProperty(value = "有效天数") |
||||
|
private Integer validityDays; |
||||
|
|
||||
|
@ExcelProperty(value = "是否可用", converter = DictConvert.class) |
||||
|
@DictFormat(DictTypeConstants.TRUE_FALSE) |
||||
|
private Integer available; |
||||
|
|
||||
|
|
||||
|
} |
Loading…
Reference in new issue