package com.hzs.common.domain.system.config;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hzs.common.core.annotation.Excel;
import com.hzs.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 协议配置表
 * </p>
 *
 * @author zhangjing
 * @since 2022-09-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("BD_AGREEMENT")
@KeySequence("BD_AGREEMENT_SEQ")
public class BdAgreement extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId("PK_ID")
    private Integer pkId;

    /**
     * 协议标题
     */
    @Excel(name = "标题",sort=1)
    @TableField("TITLE")
    private String title;

    /**
     * 协议内容
     */
    @Excel(name = "内容",sort=2)
    @TableField("CONTENT")
    private String content;

    /**
     * 生效日期
     */
    @Excel(name = "内容",sort=3,dateFormat = "yyyy-MM-dd HH:mm:ss")
    @TableField("EFFECTIVE_DATE")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date effectiveDate;

    /**
     * 是否强读 0 是 1 否 EYesNo
     */
    @TableId("IS_FORCED_READ")
    private Integer isForcedRead;

    /**
     * 强读时间
     */
    @TableField("FORCED_READ_TIME")
    private Integer forcedReadTime;

    /**
     * 是否首页强弹  0 是 1 否
     */
    @TableField("IS_INDEX_ALERT")
    private Integer isIndexAlert;


}
