package org.jeecg.modules.spare.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 备品备件表
 * @Author: jeecg-boot
 * @Date:   2020-12-22
 * @Version: V1.0
 */
@Data
@TableName("bu_spare_part")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="bu_spare_part对象", description="备品备件表")
public class BuSparePart implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**备件编号*/
	@Excel(name = "备件编号", width = 15)
    @ApiModelProperty(value = "备件编号")
    private String code;
	/**备件名称*/
	@Excel(name = "备件名称", width = 15)
    @ApiModelProperty(value = "备件名称")
    private String name;
	/**备件型号*/
	@Excel(name = "备件型号", width = 15)
    @ApiModelProperty(value = "备件型号")
    private String typeId;
	/**备件类型*/
	@Excel(name = "备件类型", width = 15,dicCode = "spare_type")
    @ApiModelProperty(value = "备件类型")
    @Dict(dicCode = "spare_type")
    private String classId;
	/**供应商id*/
	@Excel(name = "供应商id", width = 15)
    @ApiModelProperty(value = "供应商id")
    @Dict(dictTable = "bu_supplier",dicText = "name",dicCode = "id")
    private String supplierId;
	/**库存数量*/
	@Excel(name = "库存数量", width = 15)
    @ApiModelProperty(value = "库存数量")
    private Integer num;
	/**间隔时间*/
	@Excel(name = "间隔时间", width = 15)
    @ApiModelProperty(value = "单位")
    private String unit;
    /**开始时间*/
    @Excel(name = "开始时间", width = 15)
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date minStock;
    /**提醒信息*/
    @Excel(name = "提醒信息", width = 15)
    @ApiModelProperty(value = "提醒信息")
    private String remind;
}
