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;

@Data
@TableName("t_standards_regulations")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "标准法规信息")
public class TStandardsRegulations extends Model<TStandardsRegulations> {

    private  static final long serialVersionUID = 1L;

    @TableId(value = "id")
    @ApiModelProperty(value="主键id")
    private Long id;

    @ApiModelProperty(value="标准名称")
    private String name;

    @ApiModelProperty(value="文件名")
    private String fileName;

    @ApiModelProperty(value = "文件大小")
    private String fileSize;

    @ApiModelProperty(value="类型：G 国标 F 法规")
    private String type;

    @ApiModelProperty(value="所属系统：J 节能减排 L 计量 G 公共机构")
    private String tag;

    @ApiModelProperty(value="文件")
    //private byte[] file;
    private String file;

    @ApiModelProperty(value="状态：0 使用 1 试行 2废弃")
    private String state;

    @ApiModelProperty(value="发布时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd", timezone = "GMT+8")
    private Date publishTime;

    @ApiModelProperty(value="执行时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd", timezone = "GMT+8")
    private Date executeTime;

    @ApiModelProperty(value="备注")
    private String remarks;

    @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;

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

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