package org.jeecg.modules.device.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

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

/**
 * @Description: 设备生命周期表
 * @Author: jeecg-boot
 * @Date:   2020-12-11
 * @Version: V1.0
 */
@Data
@TableName("bu_device_life_circle")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="bu_device_life_circle对象", description="设备生命周期表")
public class BuDeviceLifeCircle 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;
	/**设备id*/
	@Excel(name = "设备id", width = 15)
    @ApiModelProperty(value = "设备id")
    @Dict(dictTable = "bu_device",dicText = "device_name",dicCode = "id")
    private String deviceId;
    /**设备编号*/
    @Excel(name = "设备编号", width = 15)
    @ApiModelProperty(value = "设备编号")
    private String deviceCode;
	/**购买时间*/
	@Excel(name = "购买时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "购买时间")
    private Date buyTime;
	/**购买说明*/
	@Excel(name = "购买说明", width = 15)
    @ApiModelProperty(value = "购买说明")
    private String buyDes;
	/**购置操作人id*/
	@Excel(name = "购置操作人id", width = 15)
    @ApiModelProperty(value = "购置操作人")
    @Dict(dictTable = "sys_user",dicText = "realname",dicCode = "username")
    private String buyOperatorId;
	/**封存日期*/
	@Excel(name = "封存日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "封存日期")
    private Date sealUpTime;
	/**封存原因*/
	@Excel(name = "封存原因", width = 15)
    @ApiModelProperty(value = "封存原因")
    private String sealUpReason;
	/**封存操作人id*/
	@Excel(name = "封存操作人id", width = 15)
    @ApiModelProperty(value = "封存操作人")
    @Dict(dictTable = "sys_user",dicText = "realname",dicCode = "username")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String sealUpOperatorId;
	/**启封日期*/
	@Excel(name = "投用日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "启封日期")
    private Date unsealUpTime;
	/**启封原因*/
	@Excel(name = "投用原因", width = 15)
    @ApiModelProperty(value = "启封原因")
    private String unsealUpReason;
	/**启封操作人id*/
	@Excel(name = "投用操作人id", width = 15)
    @ApiModelProperty(value = "启封操作人")
    @Dict(dictTable = "sys_user",dicText = "realname",dicCode = "username")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String unsealUpOperatorId;
	/**报废时间*/
	@Excel(name = "报废时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "报废时间")
    private Date scrapTime;
	/**报废原因*/
	@Excel(name = "报废原因", width = 15)
    @ApiModelProperty(value = "报废原因")
    private String scrapReason;
	/**报废操作人id*/
	@Excel(name = "报废操作人id", width = 15)
    @ApiModelProperty(value = "报废操作人")
    @Dict(dictTable = "sys_user",dicText = "realname",dicCode = "username")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String scrapOperatorId;
}
