Browse Source

【CHG】修改日志日期显示格式

ZhaoMn 3 years ago
parent
commit
ba4b2a03b1

+ 2 - 0
railway-system/src/main/java/com/railway/system/domain/SysOperLog.java

@@ -1,5 +1,6 @@
 package com.railway.system.domain;
 
+import com.fasterxml.jackson.annotation.JsonFormat;
 import com.railway.common.annotation.Excel;
 import com.railway.common.annotation.Excel.ColumnType;
 import com.railway.common.core.domain.BaseEntity;
@@ -132,6 +133,7 @@ public class SysOperLog extends BaseEntity {
   /**
    * 操作时间
    */
+  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
   @ApiModelProperty(value = "操作时间")
   @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
   private Date operTime;