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