浏览代码

违规预警返回时间格式调整

fanxw 1 年之前
父节点
当前提交
96cbaf3571
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/chinaitop/depot/risk/model/ViolationWarningAlarm.java

+ 1 - 1
src/main/java/com/chinaitop/depot/risk/model/ViolationWarningAlarm.java

@@ -25,7 +25,7 @@ public class ViolationWarningAlarm {
25 25
     /**
26 26
      * 违规发布时间
27 27
      */
28
-    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
28
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
29 29
     private Date alarmPublishTime;
30 30
     /**
31 31
      * 违规主题类型 当前默认是 单位