From 253f680fb9666751e0f9a8e5e8f2f9e3eb1894e3 Mon Sep 17 00:00:00 2001
From: 18034727885 <973609879@qq.com>
Date: 星期五, 26 六月 2026 14:47:00 +0800
Subject: [PATCH] 修复问题
---
app/src/main/java/com/example/smart/ui/project/bean/TaskDetailInfo.kt | 25 +++++++++++++++++--------
1 files changed, 17 insertions(+), 8 deletions(-)
diff --git a/app/src/main/java/com/example/smart/ui/project/bean/TaskDetailInfo.kt b/app/src/main/java/com/example/smart/ui/project/bean/TaskDetailInfo.kt
index 8e74879..b1897f4 100644
--- a/app/src/main/java/com/example/smart/ui/project/bean/TaskDetailInfo.kt
+++ b/app/src/main/java/com/example/smart/ui/project/bean/TaskDetailInfo.kt
@@ -3,7 +3,6 @@
import androidx.annotation.Keep
import com.example.smart.bean.EntityRef
import com.example.smart.enumlist.CheckTaskState
-import org.w3c.dom.Entity
/**
* @author: dai hang
@@ -15,20 +14,22 @@
val id: Int,
val plan: EntityRef,
val project: EntityRef,
- val client:EntityRef?,
+ val client: EntityRef?,
val state: CheckTaskState,
- val assemblePlace : String,
+ val assemblePlace: String,
val date: String,
var location: String,
- val createTime:String,
- val updateTime:String,
+ val createTime: String,
+ val updateTime: String,
var gps: List<Double>,
val creator: EntityRef,
val groupLeaders: List<EntityRef>,
val groupMembers: List<EntityRef>,
val drivers: List<EntityRef>,
- val cars: List<EntityRef>
-){
+ val cars: List<EntityRef>,
+ var addressInfo: AddressInfo?=null,
+ var projectId: String?=null,
+) {
// 判定是否关闭的函数
fun isClosed(): Boolean {
return !(state == CheckTaskState.Init
@@ -37,4 +38,12 @@
|| state == CheckTaskState.Rejected
|| state == CheckTaskState.Reviewing)
}
-}
\ No newline at end of file
+}
+
+data class AddressInfo(
+ val province: String? = null,
+ val city: String? = null,
+ val district: String? = null,
+ val detail: String? = null,
+ var lonLat: String?=null,
+)
\ No newline at end of file
--
Gitblit v1.7.1