package com.zhgd.xmgl.modules.basicdata.entity;

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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 政策法规
 * @author： pengj
 * @date： 2023-03-02
 * @version： V1.0
 */
@Data
@TableName("policy")
@ApiModel(value = "Policy实体类", description = "Policy")
public class Policy implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 政策法规ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "政策法规ID")
    private Long policyId;
    /**
     * 标题
     */
    @Excel(name = "标题", width = 15)
    @ApiModelProperty(value = "标题")
    private String title;
    /**
     * 正文内容
     */
    @Excel(name = "正文内容", width = 15)
    @ApiModelProperty(value = "正文内容")
    private String content;
    /**
     * 编号
     */
    @Excel(name = "编号", width = 15)
    @ApiModelProperty(value = "编号")
    private String number;
    /**
     * 类型(1:政策法规;2:一般文件;3:其他;)
     */
    @Excel(name = "类型(1:政策法规;2:一般文件;3:其他;)", width = 15)
    @ApiModelProperty(value = "类型(1:政策法规;2:一般文件;3:其他;)")
    private Integer type;
    /**
     * 发布单位sn
     */
    @Excel(name = "发布单位sn", width = 15)
    @ApiModelProperty(value = "发布单位sn")
    private String createBy;
    /**
     * 发布时间
     */
    @Excel(name = "发布时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "发布时间")
    private Date createTime;

    /**
     * 发布单位名称
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "发布单位名称")
    private String createByName;
}
