package com.nantian.cloud.jljc.entity;

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 com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

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

/**
 * 现场检查笔录
 * @since 2020-10-29
 */
@Data
@TableName("t_supervision_inspection")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "现场检查笔录")
public class TSupervisionInspection extends Model<TSupervisionInspection> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户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;

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

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

    /**
     * 监察编号
     */
    @ApiModelProperty(value = "监察编号")
    private String monitorId;

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

    /**
     * 监察机构代码
     */
    @ApiModelProperty(value = "监察机构代码")
    private String ocode;

    /**
     * 企业联系地址
     */
    @ApiModelProperty(value = "企业联系地址")
    private String caddress;

    /**
     * 企业负责人
     */
    @ApiModelProperty(value = "企业负责人")
    private String cprincipal;

    /**
     * 企业联系电话
     */
    @ApiModelProperty(value = "企业联系电话")
    private String ctelephone;

    /**
     * 企业传真
     */
    @ApiModelProperty(value = "企业传真")
    private String cfax;

    /**
     * 企业邮编
     */
    @ApiModelProperty(value = "企业邮编")
    private String cpostcode;

    /**
     * 企业负责人职务
     */
    @ApiModelProperty(value = "企业负责人职务")
    private String cprincipalJob;

    /**
     * 企业负责人联系电话
     */
    @ApiModelProperty(value = "企业负责人联系电话")
    private String cprincipalTelephone;

    @ApiModelProperty(value = "监察场所")
    private String inspectionPlace;

    @ApiModelProperty(value = "监察时间")
//    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd", timezone = "GMT+8")
    private String inspectionTime;

    @ApiModelProperty(value = "监察说明")
    private String inspectionRemark;

    @ApiModelProperty(value = "监察说明2")
    private String inspectionRemark2;

    @ApiModelProperty(value = "监察说明3")
    private String inspectionRemark3;

    @ApiModelProperty(value = "当事人意见")
    private String inspectionOpinion;

    @ApiModelProperty(value = "当事人意见2")
    private String inspectionOpinion2;

    @ApiModelProperty(value = "当事人提供明细")
    private String inspectionDetails;

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