瀏覽代碼

导出时间格式添加注解

gao.qiang 2 年之前
父節點
當前提交
8f1951b1d7
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      base-common/src/main/java/com/ozs/common/core/domain/BaseEntity.java

+ 2 - 2
base-common/src/main/java/com/ozs/common/core/domain/BaseEntity.java

@@ -37,7 +37,7 @@ public class BaseEntity implements Serializable
 
     /** 创建时间 */
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
-    @Excel(name = "创建时间")
+    @Excel(name = "创建时间",dateFormat = "yyyy-MM-dd HH:mm:ss")
     private Date createTime;
 
     /** 更新者 */
@@ -45,7 +45,7 @@ public class BaseEntity implements Serializable
     private String updateBy;
 
     /** 更新时间 */
-    @Excel(name = "更新时间")
+    @Excel(name = "更新时间",dateFormat = "yyyy-MM-dd HH:mm:ss")
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
     private Date updateTime;