18034727885
2026-06-26 253f680fb9666751e0f9a8e5e8f2f9e3eb1894e3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package com.example.smart.ui.project.bean
 
import androidx.annotation.Keep
import com.example.smart.bean.EntityRef
import com.example.smart.enumlist.CheckTaskState
 
/**
 * @author: dai hang
 * @data: 2024/5/20 19:39
 * @description:
 */
@Keep
data class TaskDetailInfo(
    val id: Int,
    val plan: EntityRef,
    val project: EntityRef,
    val client: EntityRef?,
    val state: CheckTaskState,
    val assemblePlace: String,
    val date: String,
    var location: 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>,
    var addressInfo: AddressInfo?=null,
    var projectId: String?=null,
) {
    // 判定是否关闭的函数
    fun isClosed(): Boolean {
        return !(state == CheckTaskState.Init
                || state == CheckTaskState.Published
                || state == CheckTaskState.EXECUTING
                || state == CheckTaskState.Rejected
                || state == CheckTaskState.Reviewing)
    }
}
 
data class AddressInfo(
    val province: String? = null,
    val city: String? = null,
    val district: String? = null,
    val detail: String? = null,
    var lonLat: String?=null,
)