فهرست منبع

相机树开发

gao.qiang 3 ماه پیش
والد
کامیت
06967d3696

+ 3 - 1
business-service/src/main/java/com/ozs/service/entity/MqLog.java

@@ -2,6 +2,8 @@ package com.ozs.service.entity;
 
 import java.time.LocalDateTime;
 import java.io.Serializable;
+import java.util.Date;
+
 import lombok.Data;
 import lombok.EqualsAndHashCode;
 
@@ -32,7 +34,7 @@ public class MqLog implements Serializable {
     /**
      * 创建时间
      */
-    private LocalDateTime createTime;
+    private Date createTime;
 
 
 }

+ 3 - 3
business-service/src/main/java/com/ozs/service/entity/vo/MsgAlarmResp.java

@@ -162,9 +162,9 @@ public class MsgAlarmResp implements Serializable {
     private String cameraSn;
 
     private Integer isDisable;
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    private Date heartTime;
 
-    private LocalDateTime heartTime;
-
-    private Integer electricity;
+    private String electricity;
 
 }