From 7d74f3fd087d4a8192ed556a6c2e3a2ea3c81cff Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期五, 28 三月 2025 17:43:48 +0800
Subject: [PATCH] 1. 新增扬尘监测数据上传功能

---
 src/main/kotlin/cn/flightfeather/supervision/common/executor/BgTaskStatus.kt |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/main/kotlin/cn/flightfeather/supervision/common/executor/BgTaskStatus.kt b/src/main/kotlin/cn/flightfeather/supervision/common/executor/BgTaskStatus.kt
index 22d6fa9..93d036a 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/common/executor/BgTaskStatus.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/common/executor/BgTaskStatus.kt
@@ -1,5 +1,7 @@
 package cn.flightfeather.supervision.common.executor
 
+import cn.flightfeather.supervision.socket.LocalDateTimeAdapter
+import com.google.gson.annotations.JsonAdapter
 import java.time.Duration
 import java.time.LocalDateTime
 
@@ -15,12 +17,15 @@
     var status: TaskStatus = TaskStatus.WAITING
 
     //    寮�濮嬫椂闂�
+    @JsonAdapter(LocalDateTimeAdapter::class)
     var startTime: LocalDateTime? = null
 
     //    缁撴潫鏃堕棿
+    @JsonAdapter(LocalDateTimeAdapter::class)
     var endTime: LocalDateTime? = null
 
     //    鍒涘缓鏃堕棿
+    @JsonAdapter(LocalDateTimeAdapter::class)
     var createTime: LocalDateTime = LocalDateTime.now()
 
     //    杩愯鏃堕暱锛堢锛�
@@ -45,6 +50,9 @@
             }
         }
 
+    // 棰濆鑷畾涔夐檮甯︿俊鎭�
+    var extra: Any? = null
+
 }
 
 enum class TaskStatus {

--
Gitblit v1.9.3