Sfoglia il codice sorgente

服务器时间修改为long类型的毫秒值

王鑫刚 4 settimane fa
parent
commit
c940a8ef71

+ 3 - 3
src/main/java/cn/hanghui/outapi/platform/tenant/entity/dto/hhlocal/HhLocalDeviceVo.java

@@ -35,7 +35,7 @@ public class HhLocalDeviceVo extends HhLocalDeviceBase {
     private Date createTime;
 
 
-    @ApiModelProperty(value = "当前服务器时间")
-    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
-    private Date serverTime = new Date();
+    @ApiModelProperty(value = "当前服务器时间(毫秒)")
+    private Long serverTime = System.currentTimeMillis();
+
 }