package com.nantian.cloud.dbcapp.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 lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 不合格通知书
 */
@Data
@TableName("below_grade_notice")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "不合格通知书")
public class BelowGradeNotice extends Model<BelowGradeNotice> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Integer id;

    /**
     * 父级id
     */
    private Integer pid;

    /**
     * 主题
     */
    private String topic;

    /**
     * 企业编码
     */
    private String enterpriseCode;

    /**
     * 内容
     */
    private String content;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 附件
     */
    private String file;

    /**
     * 是否发送通知 1已发送 0未发送
     */
    private String status;

    /**
     * 用户id
     */
    private Integer userid;

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

    /**
     * 注销状态（1:未删除，4:已删除）
     */
    private String delFlag;

    /**
     * 部门id
     */
    private Integer deptId;


    @TableField(exist = false)
    private String cmpName;
}
