소스 검색

导出时间格式添加注解

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;