70 lines
1.7 KiB
Java
70 lines
1.7 KiB
Java
|
|
package com.klp.domain.vo;
|
|||
|
|
|
|||
|
|
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
|||
|
|
import com.alibaba.excel.annotation.ExcelProperty;
|
|||
|
|
import com.klp.common.annotation.ExcelDictFormat;
|
|||
|
|
import com.klp.common.convert.ExcelDictConvert;
|
|||
|
|
import lombok.Data;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* BOM 头,关联产品或原材料视图对象 wms_bom
|
|||
|
|
*
|
|||
|
|
* @author Joshi
|
|||
|
|
* @date 2025-07-29
|
|||
|
|
*/
|
|||
|
|
@Data
|
|||
|
|
@ExcelIgnoreUnannotated
|
|||
|
|
public class WmsBomVo {
|
|||
|
|
|
|||
|
|
private static final long serialVersionUID = 1L;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* BOM 主键ID
|
|||
|
|
*/
|
|||
|
|
@ExcelProperty(value = "BOM 主键ID")
|
|||
|
|
private Long bomId;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* BOM 编码(可选)
|
|||
|
|
*/
|
|||
|
|
@ExcelProperty(value = "BOM 编码", converter = ExcelDictConvert.class)
|
|||
|
|
@ExcelDictFormat(readConverterExp = "可=选")
|
|||
|
|
private String bomCode;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* BOM 名称(可选)
|
|||
|
|
*/
|
|||
|
|
@ExcelProperty(value = "BOM 名称", converter = ExcelDictConvert.class)
|
|||
|
|
@ExcelDictFormat(readConverterExp = "可=选")
|
|||
|
|
private String bomName;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 所属类型: PRODUCT 或 RAW_MATERIAL
|
|||
|
|
*/
|
|||
|
|
@ExcelProperty(value = "所属类型: PRODUCT 或 RAW_MATERIAL", converter = ExcelDictConvert.class)
|
|||
|
|
@ExcelDictFormat(dictType = "stock_item_type")
|
|||
|
|
private String parentType;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 对应 wms_product.product_id 或 wms_raw_material.raw_material_id
|
|||
|
|
*/
|
|||
|
|
@ExcelProperty(value = "对应 wms_product.product_id 或 wms_raw_material.raw_material_id")
|
|||
|
|
private Long parentId;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 是否启用(0=否,1=是)
|
|||
|
|
*/
|
|||
|
|
@ExcelProperty(value = "是否启用", converter = ExcelDictConvert.class)
|
|||
|
|
@ExcelDictFormat(readConverterExp = "0==否,1=是")
|
|||
|
|
private Integer isEnabled;
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 备注
|
|||
|
|
*/
|
|||
|
|
@ExcelProperty(value = "备注")
|
|||
|
|
private String remark;
|
|||
|
|
|
|||
|
|
|
|||
|
|
}
|