puzhibing
2026-08-21 5fa94b3718b4a78a4fcea4c97652b0ef20b7de3a
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
package com.xw.yunwei.model
 
import com.google.gson.annotations.SerializedName
import com.xw.yunwei.extension.dateChangePattern
 
/**
 * 常规任务任务整备详情
 */
data class TaskNormalMaintainModel(
 
 
    /**
     * 操作人
     */
    @SerializedName("handleUserName")
    val handleUserName: String? = null,
 
    /**
     * 操作时间
     */
    @SerializedName("handleTime")
    val handleTime: String? = null,
 
    /**
     * 车身标识状态
     */
    @SerializedName("bodyEmblem")
    val bodyEmblem: String? = null,
 
    /**
     * 刹车灯状态
     */
    @SerializedName("brakeLight")
    val brakeLight: String? = null,
 
    /**
     * 舱内清洁状态
     */
    @SerializedName("cabinCleaning")
    val cabinCleaning: String? = null,
 
    /**
     * 记录创建人(前端忽略)
     */
    @SerializedName("createBy")
    val createBy: String? = null,
 
    /**
     * 记录创建时间(前端忽略)
     */
    @SerializedName("createTime")
    val createTime: String? = null,
 
    /**
     * 雾灯状态
     */
    @SerializedName("fogLight")
    val fogLight: String? = null,
 
    /**
     * 大灯状态
     */
    @SerializedName("headLight")
    val headLight: String? = null,
 
    /**
     * 任务ID
     */
    @SerializedName("id")
    val id: Long? = null,
 
    /**
     * 左前轮状态
     */
    @SerializedName("leftFrontWheel")
    val leftFrontWheel: String? = null,
 
    /**
     * 左后轮状态
     */
    @SerializedName("leftRearWheel")
    val leftRearWheel: String? = null,
 
    /**
     * 遗失物品情况
     */
    @SerializedName("lostItems")
    val lostItems: String? = null,
 
    /**
     * 操作时间
     */
    @SerializedName("operationsTime")
    val operationsTime: String? = null,
 
    /**
     * 操作人ID
     */
    @SerializedName("operationsUserId")
    val operationsUserId: Long? = null,
 
    /**
     * 操作人名称
     */
    @SerializedName("operationsUserName")
    val operationsUserName: String? = null,
 
    /**
     * 车牌号
     */
    @SerializedName("plateNumber")
    val plateNumber: String? = null,
 
    /**
     * 备注信息
     */
    @SerializedName("remarks")
    val remarks: String? = null,
 
    /**
     * 右前轮状态
     */
    @SerializedName("rightFrontWheel")
    val rightFrontWheel: String? = null,
 
    /**
     * 右后轮状态
     */
    @SerializedName("rightRearWheel")
    val rightRearWheel: String? = null,
 
    /**
     * 任务状态
     * 0 = 待到达
     * 1 = 待处理
     * 2 = 已完成
     * 3 = 已取消
     */
    @SerializedName("status")
    val status: Int? = null,
 
    /**
     * 任务类别
     * 1 = 常规任务
     * 2 = 事故任务
     */
    @SerializedName("taskCategory")
    val taskCategory: Int? = null,
 
    /**
     * 任务编号
     */
    @SerializedName("taskCode")
    val taskCode: String? = null,
 
    /**
     * 任务类型ID
     * 任务类别为2时:对应数据字典,多个逗号分割
     * 任务类别为1时:枚举值 1-9
     */
    @SerializedName("taskTypeId")
    val taskTypeId: String? = null,
 
    /**
     * 任务紧急程度
     * 0 = P0(最紧急)
     * 1 = P1
     * 2 = P2
     * 3 = P3(最不紧急)
     */
    @SerializedName("taskUrgencyLevel")
    val taskUrgencyLevel: Int? = null,
 
    /**
     * 转向灯状态
     */
    @SerializedName("turnSignal")
    val turnSignal: String? = null,
 
    /**
     * 车辆编码
     */
    @SerializedName("vehicleCode")
    val vehicleCode: String? = null,
 
    /**
     * 车辆颜色
     */
    @SerializedName("vehicleColor")
    val vehicleColor: String? = null,
 
    /**
     * 车辆ID
     */
    @SerializedName("vehicleId")
    val vehicleId: Long? = null,
 
    /**
     * 车辆地址/位置
     */
    @SerializedName("vehicleLocation")
    val vehicleLocation: String? = null
) {
    //获取显示操作时间
    fun getShowOperationsTime(): String?{
        return operationsTime?.dateChangePattern("yyyy-MM-dd HH:mm:ss","yyyy/MM/dd HH:mm:ss")
    }
}