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")
|
}
|
}
|