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

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 hzs
 * @since 2022-11-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("HO_ENTERPRISE_NEWS")
@KeySequence("HO_ENTERPRISE_MISSION_SEQ")
public class HoEnterpriseNews extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("PK_ID")
    private Integer pkId;

    /**
     * 文章标题名称
     */
    @Excel(name = "标题名称",sort = 1)
    @TableField("TITLE_NAME")
    private String titleName;

    /**
     * 图片
     */
    @TableField("PICTURE")
    private String picture;

    /**
     * 内容
     */
    @TableField("CONTENT")
    private String content;

    /**
     * 排序
     */
    @TableField("SORT")
    private Integer sort;

    /**
     * 文章内容摘要
     */
    @TableField("SUMMARY")
    private String summary;

    /**
     * 0 中文 1 英文
     */
    @TableField("LANGUAGE_TYPE")
    private Integer languageType;

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


}
