|
@ -1,7 +1,9 @@ |
|
|
package com.win.module.eam.controller.item.vo; |
|
|
package com.win.module.eam.controller.item.vo; |
|
|
|
|
|
|
|
|
import com.alibaba.excel.annotation.ExcelProperty; |
|
|
import com.alibaba.excel.annotation.ExcelProperty; |
|
|
|
|
|
import com.win.framework.excel.core.annotations.DictFormat; |
|
|
import com.win.framework.excel.core.annotations.ExcelValid; |
|
|
import com.win.framework.excel.core.annotations.ExcelValid; |
|
|
|
|
|
import com.win.framework.excel.core.convert.DictConvert; |
|
|
import lombok.AllArgsConstructor; |
|
|
import lombok.AllArgsConstructor; |
|
|
import lombok.Data; |
|
|
import lombok.Data; |
|
|
import lombok.NoArgsConstructor; |
|
|
import lombok.NoArgsConstructor; |
|
@ -49,7 +51,8 @@ public class ItemImportVO { |
|
|
@ExcelProperty("采购周期(周)") |
|
|
@ExcelProperty("采购周期(周)") |
|
|
private Integer procurementCycle; |
|
|
private Integer procurementCycle; |
|
|
|
|
|
|
|
|
@ExcelProperty("ABC分类") |
|
|
@DictFormat("classification") // TODO 代码优化:建议设置到对应的 XXXDictTypeConstants 枚举类中
|
|
|
|
|
|
@ExcelProperty(value = "ABC分类", converter = DictConvert.class) |
|
|
@ExcelValid(message = "ABC分类必填") |
|
|
@ExcelValid(message = "ABC分类必填") |
|
|
private String classification; |
|
|
private String classification; |
|
|
|
|
|
|
|
|