package org.dromara.eims.domain.vo;
|
|
import org.dromara.common.translation.annotation.Translation;
|
import org.dromara.common.translation.constant.TransConstant;
|
import org.dromara.eims.domain.EimsSpare;
|
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
import com.alibaba.excel.annotation.ExcelProperty;
|
import org.dromara.common.excel.annotation.ExcelDictFormat;
|
import org.dromara.common.excel.convert.ExcelDictConvert;
|
import io.github.linpeilie.annotations.AutoMapper;
|
import lombok.Data;
|
|
import java.io.Serial;
|
import java.io.Serializable;
|
import java.math.BigDecimal;
|
import java.util.Date;
|
|
|
|
/**
|
* 备件台账视图对象 eims_spare
|
*
|
* @author zhuguifei
|
* @date 2025-03-20
|
*/
|
@Data
|
@ExcelIgnoreUnannotated
|
@AutoMapper(target = EimsSpare.class)
|
public class EimsSpareVo implements Serializable {
|
|
@Serial
|
private static final long serialVersionUID = 1L;
|
|
/**
|
*
|
*/
|
@ExcelProperty(value = "")
|
private Long id;
|
|
/**
|
* 类型
|
*/
|
@ExcelProperty(value = "类型")
|
private Long type;
|
|
@Translation(type = TransConstant.SPARE_TYPE_ID_TO_NAME, mapper = "type")
|
private String typeName;
|
|
/**
|
* 备件名称
|
*/
|
@ExcelProperty(value = "备件名称")
|
private String name;
|
|
/**
|
* 备件编码
|
*/
|
@ExcelProperty(value = "备件编码")
|
private String code;
|
|
/**
|
* 备件图片
|
*/
|
@ExcelProperty(value = "备件图片")
|
private Long img;
|
|
/**
|
* 备件图片Url
|
*/
|
@Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "img")
|
private String imgUrl;
|
/**
|
* 型号
|
*/
|
@ExcelProperty(value = "型号")
|
private String modelNo;
|
|
/**
|
* 制造商
|
*/
|
@ExcelProperty(value = "制造商")
|
private String madeIn;
|
|
/**
|
* 供应商
|
*/
|
@ExcelProperty(value = "供应商")
|
private String supplier;
|
|
/**
|
* 计量单位(字典)
|
*/
|
@ExcelProperty(value = "计量单位", converter = ExcelDictConvert.class)
|
@ExcelDictFormat(dictType = "eims_spare_unit")
|
private String unit;
|
|
/**
|
* 参考价格
|
*/
|
@ExcelProperty(value = "参考价格")
|
private BigDecimal referPrice;
|
|
/**
|
* 库存上限
|
*/
|
@ExcelProperty(value = "库存上限")
|
private Long upperStock;
|
|
/**
|
* 库存下限
|
*/
|
@ExcelProperty(value = "库存下限")
|
private Long lowerStock;
|
|
/**
|
* 实际库存
|
*/
|
@ExcelProperty(value = "实际库存")
|
private Long actualStock;
|
|
/**
|
* 库存金额
|
*/
|
@ExcelProperty(value = "库存金额")
|
private BigDecimal stockAmount;
|
|
/**
|
* 更换周期
|
*/
|
@ExcelProperty(value = "更换周期")
|
private Long replaceCycle;
|
|
/**
|
* 更换周期单位(字典)
|
*/
|
@ExcelProperty(value = "更换周期单位", converter = ExcelDictConvert.class)
|
@ExcelDictFormat(dictType = "maint_cycle_unit")
|
private String cycleUnit;
|
|
/**
|
* 备注
|
*/
|
@ExcelProperty(value = "备注")
|
private String remark;
|
/**
|
* 出库入库数量
|
*/
|
private Long quantity;
|
|
}
|