package com.kcim.common.util.excel.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @program: CostAccount
 * @description: 药品字典导入模版
 * @author: Wang.YS
 * @create: 2023-11-06 20:54
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ExcelTarget("MaterialImportEntity")
public class MaterialImportEntity {

    @Excel(name="项目代码",width = 20)
    private String code;

    @Excel(name="项目名称",width = 20)
    private String name;

    @Excel(name="项目类型",width = 20,replace = {"不计价材料_1","高值材料_2","低值材料_3"},addressList = true)
    private Integer type;

    @Excel(name="单价",width = 20)
    private BigDecimal price;

    @Excel(name="成本",width = 20)
    private BigDecimal cost;

    @Excel(name="停用",width = 20,replace = {"启用_0","停用_1"},addressList = true)
    private Integer status;

    @Excel(name="停用时间",width = 20)
    private Date stopTime;



}
