package org.jeecg.modules.plan.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
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-14
 * @Version: V1.0
 */
@Data
@TableName("bu_check_plan")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="bu_check_plan对象", description="检查计划表")
public class BuCheckPlan 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 planName;
	/**计划类型*/
	@Excel(name = "计划类型", width = 15,dicCode = "plan_type")
    @ApiModelProperty(value = "计划类型")
    @Dict(dicCode = "plan_type")
    private String planType;
    /**检查类型*/
    @Excel(name = "检查类型", width = 15,dicCode = "check_type")
    @ApiModelProperty(value = "检查类型")
    @Dict(dicCode = "check_type")
    private String checkType;
	/**设备检查范围*/
	@Excel(name = "设备检查范围", width = 15)
    @ApiModelProperty(value = "设备检查范围")
    @Dict(dictTable = "bu_device",dicText = "device_name",dicCode = "id")
    private String deviceRange;
	/**是否执行*/
	@Excel(name = "是否执行", width = 15,dicCode = "is_execute")
    @ApiModelProperty(value = "是否执行")
    @Dict(dicCode = "is_execute")
    private String isExecute;
	/**计划内容*/
	@Excel(name = "计划内容", width = 15)
    @ApiModelProperty(value = "计划内容")
    private String planContent;
	/**发起人id*/
	@Excel(name = "发起人id", width = 15)
    @ApiModelProperty(value = "发起人id")
    @Dict(dictTable = "sys_user",dicText = "realname",dicCode = "username")
    private String initiateId;
	/**开始时间*/
	@Excel(name = "开始时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "开始时间")
    private Date startTime;
	/**执行人id*/
	@Excel(name = "执行人id", width = 15)
    @ApiModelProperty(value = "执行人id")
    @Dict(dictTable = "sys_user",dicText = "realname",dicCode = "username")
    private String performId;
    /**计划结束时间*/
    @Excel(name = "计划结束时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "计划结束时间")
    private Date planEndTime;
}
