package com.nantian.cloud.jly.entity;

import java.time.LocalDateTime;

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 com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
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("configure_gauge_replace")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "能源计量器具更换记录")
public class ConfigureGaugeReplace extends Model<ConfigureGaugeReplace> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id")
    @ApiModelProperty(value = "id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

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

    /**
     * 被替换计量器出产序号
     */
    @ApiModelProperty(value = "被替换计量器出产序号")
    private String replacedSerno;

    /**
     * 被替换计量器管理编号
     */
    @ApiModelProperty(value = "被替换计量器管理编号")
    private String replacedManageNo;

    /**
     * 被替换计量器二维码
     */
    @ApiModelProperty(value = "被替换计量器二维码")
    private String replacedBarCode;

    /**
     * 新装计量器出产序号
     */
    @ApiModelProperty(value = "新装计量器出产序号")
    private String installSerNo;

    /**
     * 新装计量器管理编号
     */
    @ApiModelProperty(value = "新装计量器管理编号")
    private String installManageNo;

    /**
     * 新装计量器二维码
     */
    @ApiModelProperty(value = "新装计量器二维码")
    private String installBarCode;

    /**
     * 新装计量器时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "新装计量器时间")
    private Date installTime;

    /**
     * 备注
     */
    @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;
    }
}
