package com.zfire.jiasm.syncdata.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 通知消息表
 * </p>
 *
 * @author gejiang
 * @since 2023-07-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="NoticeRecord对象", description="通知消息表")
public class NoticeRecord extends Model<NoticeRecord> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    private String noticeId;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "文件编号")
    private String code;

    @ApiModelProperty(value = "消息内容")
    private String content;

    @ApiModelProperty(value = "公告类型")
    private String type;

    @ApiModelProperty(value = "是否已读YES:已读,NO:未读")
    private String readFlag;

    @ApiModelProperty(value = "阅读时间")
    private Date readTime;

    @ApiModelProperty(value = "是否已通知 YES=已通知 NO=未通知")
    private String isNotice;

    @ApiModelProperty(value = "来源")
    private String source;

    @ApiModelProperty(value = "发布人")
    private String issueUserId;

    @ApiModelProperty(value = "发布人昵称")
    private String issueNickName;

    @ApiModelProperty(value = "发布时间")
    private Date issueTime;

    @ApiModelProperty(value = "接收人")
    private String adminUserId;

    @ApiModelProperty(value = "接收人昵称")
    private String adminNickName;

    @ApiModelProperty(value = "部门id")
    private String adminWebsitId;

    @ApiModelProperty(value = "部门名称")
    private String adminWebsitName;

    @ApiModelProperty(value = "公司id")
    private String adminCompanyId;

    @ApiModelProperty(value = "企业名称")
    private String adminCompanyName;

    @ApiModelProperty(value = "SYSTEM 系统消息  NOTICE 公告类型")
    private String noticeType;

    @ApiModelProperty(value = "创建人（制单人）")
    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
