package com.nantian.cloud.jly.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.lettuce.core.ValueScanCursor;
import io.swagger.annotations.ApiModel;

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

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 审批意见
 * </p>
 *
 * @author scott
 * @since 2020-08-10
 */
@Data
@TableName("check_report")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "审批意见")
public class CheckReport extends Model<CheckReport>{

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id")
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 审查计划ID
     */
    @ApiModelProperty(value = "审查计划ID")
    private Long checkPlanId;

    /**
     * 企业社会信用代码
     */
    @ApiModelProperty(value = "企业社会信用代码")
    private String epc;

    /**
     * 审批结论
     */
    @ApiModelProperty(value = "审批结论")
    private String checkResult;

    /**
     * 经办人
     */
    @ApiModelProperty(value = "经办人")
    private String doPerson;

    /**
     * 审批单位名称
     */
    @ApiModelProperty(value = "审批单位名称")
    private String checkUnit;

    /**
     * 审批人
     */
    @ApiModelProperty(value = "审批人")
    private String checkPerson;

    /**
     * 审批时间
     */
    @ApiModelProperty(value = "审批时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date checkTime;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    private Integer userid;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    /**
     * 注销状态
     */
    @ApiModelProperty(value = "注销状态（1：未删除，4：已删除）")
    private String delFlag;

    /**
     * 部门id
     */
    @ApiModelProperty(value = "部门id")
    private Integer deptId;

    /**
     * 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
