18034727885
2026-06-29 d442b3f84184f572da8350a6c10b647ffb6337b2
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
package com.xw.yunwei.model
 
import com.google.gson.annotations.SerializedName
import com.xw.yunwei.extension.dateChangePattern
import java.util.Date
 
/**
 * 车辆操作记录实体类
 */
data class CarOperationRecordModel(
 
    /**
     * 续航㎞
     */
    @SerializedName("startMileageRange")
    val startMileageRange: Double? = null,
 
    /**
     * 续航㎞
     */
    @SerializedName("endMileageRange")
    val endMileageRange: Double? = null,
 
    /**
     * 当前模式
     * 1-接单模式
     * 2-测试模式
     */
    @SerializedName("acceptOrTest")
    val acceptOrTest: Int? = null,
 
    /**
     * 结束剩余电量
     */
    @SerializedName("endRemainingBattery")
    val endRemainingBattery: Int? = null,
 
    /**
     * 主键id
     */
    @SerializedName("id")
    val id: Long? = null,
 
    /**
     * 操作时间
     */
    @SerializedName("operationTime")
    val operationTime: String? = null,
 
    /**
     * 操作人id
     */
    @SerializedName("operationsUserId")
    val operationsUserId: Long? = null,
 
    /**
     * 操作人姓名
     */
    @SerializedName("operatorName")
    val operatorName: String? = null,
 
    /**
     * 车牌号
     */
    @SerializedName("plateNumber")
    val plateNumber: String? = null,
 
    /**
     * 开始剩余电量
     */
    @SerializedName("startRemainingBattery")
    val startRemainingBattery: Int? = null,
 
    /**
     * 车辆id
     */
    @SerializedName("vehicleId")
    val vehicleId: Long? = null,
 
    /**
     * 车辆图片(URL或Base64)
     */
    @SerializedName("vehiclePictures")
    val vehiclePictures: String? = null
){
 
    //获取显示操作时间
    fun getShowOperationTime(): String?{
        return operationTime?.dateChangePattern("yyyy-MM-dd HH:mm:ss","yyyy/MM/dd HH:mm:ss")
    }
}