From eaf26c265f8882b2e100428d942ac377330cc114 Mon Sep 17 00:00:00 2001
From: inleft <inleft@qq.com>
Date: Thu, 04 Aug 2022 18:47:07 +0800
Subject: [PATCH] 新增:消息盒子功能

---
 snowy-main/src/main/java/vip/xiaonuo/modular/blogarticle/entity/BlogArticle.java |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/snowy-main/src/main/java/vip/xiaonuo/modular/blogarticle/entity/BlogArticle.java b/snowy-main/src/main/java/vip/xiaonuo/modular/blogarticle/entity/BlogArticle.java
index 6c06354..a9dbe2d 100644
--- a/snowy-main/src/main/java/vip/xiaonuo/modular/blogarticle/entity/BlogArticle.java
+++ b/snowy-main/src/main/java/vip/xiaonuo/modular/blogarticle/entity/BlogArticle.java
@@ -25,9 +25,7 @@
 package vip.xiaonuo.modular.blogarticle.entity;
 
 import cn.afterturn.easypoi.excel.annotation.Excel;
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.*;
 import lombok.Data;
 
 import java.util.Date;
@@ -126,6 +124,10 @@
     @Excel(name = "编辑状态 0:草稿 1:发布")
     private Integer editorStatus;
 
+    @Excel(name = "是否允许评论 0:否 1:是")
+    private Integer isAllowedComment;
+
+
     /**
      * 归档年份(以初次发布时间为准)
      */
@@ -154,12 +156,14 @@
      * 更新时间
      */
     @Excel(name = "更新时间", databaseFormat = "yyyy-MM-dd HH:mm:ss", format = "yyyy-MM-dd", width = 20)
+    @TableField(fill = FieldFill.INSERT_UPDATE)
     private Date updateDate;
 
     /**
      * 创建时间
      */
     @Excel(name = "创建时间", databaseFormat = "yyyy-MM-dd HH:mm:ss", format = "yyyy-MM-dd", width = 20)
+    @TableField(fill = FieldFill.INSERT)
     private Date createDate;
 
 }

--
Gitblit v1.9.1