package com.nantian.cloud.jly.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
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;

/**
 * <p>
 * 能源计量人员配置信息
 * </p>
 *
 * @author scott
 * @since 2020-08-07
 */
@Data
@TableName("company_calculater")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "能源计量人员配置信息")
public class CompanyCalculater extends Model<CompanyCalculater> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @JSONField(serializeUsing = ToStringSerializer.class)
    @TableId(value = "id")
    @ApiModelProperty(value = "能源计量人员配置信息")
    private Long id;

    /**
     * 社会行用统一编码
     */
    @ApiModelProperty(value = "社会行用统一编码")
    private String enterpriseCode;

    /**
     * 姓名
     */
    @ApiModelProperty(value = "姓名")
    private String calculaterName;

    /**
     * 电话
     */
    @ApiModelProperty(value = "电话")
    private String phone;

    /**
     * 部门
     */
    @ApiModelProperty(value = "部门")
    private String dept;

    /**
     * 职位、岗位
     */
    @ApiModelProperty(value = "职位、岗位")
    private String job;

    /**
     * 是否参加培训考试
     */
    @ApiModelProperty(value = "职位、岗位")
    private String exam;

    /**
     * 专业技术职称
     */
    @ApiModelProperty(value = "专业技术职称")
    private String technicalPost;

    /**
     * 专业技术证书
     */
    @ApiModelProperty(value = "专业技术证书")
    private String certificate;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    private String certificateName;

    /**
     * 编号
     *
     */
    @ApiModelProperty(value = "编号")
    private String certificateNo;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    private String state;

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