package com.ruoyi.zzb.zdcx.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 【制度查询】实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("STANDARD_DOC_INFO")
public class Zdcx {

    @TableId(value = "ID", type = IdType.ASSIGN_ID)
    private String id;
    // 文号
    @TableField("DOC_ID")
    private String docId;
    // 题目
    @TableField("TITLE")
    private String title;
    // 制定单位
    @TableField("PUBLISH_DEPT")
    private String publishDept;
    // 内容
    @TableField("CONTENT")
    private String content;

    // 发布时间
    @TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    // 更新时间
    @TableField(value = "UPDATE_TIME", fill = FieldFill.INSERT_UPDATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @TableField("CREATE_USER_ID")
    private String createUserId;
    @TableField("CREATE_USER_NAME")
    private String createUserName;
    @TableField("CREATE_USER_POLICE_NO")
    private String createUserPoliceNo;
    @TableField("CREATE_PARENT_DEPT_NAME")
    private String createParentDeptName;
    @TableField("CREATE_PARENT_DEPT_CODE")
    private String createParentDeptCode;
    @TableField("CREATE_DEPT_NAME")
    private String createDeptName;
    @TableField("CREATE_DEPT_CODE")
    private String createDeptCode;

    // 是否删除
    @TableField(value = "IS_DELETE", fill = FieldFill.INSERT)
    private Integer isDelete;
    // 常量标志
//    @TableField(value = "FLAG", fill = FieldFill.INSERT)
//    private Integer flag;


}
