package com.xw.yunwei.model
|
|
import com.google.gson.annotations.SerializedName
|
import com.xw.yunwei.extension.dateChangePattern
|
|
/**
|
* 车辆整备记录VO
|
* 用于记录车辆整备检查的完整信息
|
*/
|
data class CarRecordMaintainModel(
|
|
/**
|
* 当前模式
|
* 1 = 接单模式
|
* 2 = 测试模式
|
*/
|
@SerializedName("acceptOrTest")
|
val acceptOrTest: Int? = 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,
|
|
/**
|
* 是否删除:false-未删除,true-已删除
|
*/
|
@SerializedName("deleted")
|
val deleted: Boolean? = 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("operationTime")
|
val operationTime: String? = null,
|
|
/**
|
* 操作人ID
|
*/
|
@SerializedName("operationsUserId")
|
val operationsUserId: Long? = null,
|
|
/**
|
* 结束操作人姓名
|
*/
|
@SerializedName("operatorEndName")
|
val operatorEndName: String? = null,
|
|
/**
|
* 开始操作人姓名
|
*/
|
@SerializedName("operatorStartName")
|
val operatorStartName: 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,
|
|
/**
|
* 关联任务ID
|
*/
|
@SerializedName("taskId")
|
val taskId: Long? = null,
|
|
/**
|
* 转向灯状态
|
*/
|
@SerializedName("turnSignal")
|
val turnSignal: String? = null,
|
|
/**
|
* 记录修改人(前端忽略)
|
*/
|
@SerializedName("upStringBy")
|
val upStringBy: String? = null,
|
|
/**
|
* 记录修改时间(前端忽略)
|
*/
|
@SerializedName("upStringTime")
|
val upStringTime: String? = null,
|
|
/**
|
* 车辆颜色
|
*/
|
@SerializedName("vehicleColor")
|
val vehicleColor: String? = null,
|
|
/**
|
* 车辆ID
|
*/
|
@SerializedName("vehicleId")
|
val vehicleId: Long? = null,
|
|
/**
|
* 车辆图片(URL或Base64,多张以逗号分隔)
|
*/
|
@SerializedName("vehiclePictures")
|
val vehiclePictures: String? = null
|
) {
|
companion object Companion {
|
/** 接单模式 */
|
const val MODE_ACCEPT_ORDER = 1
|
/** 测试模式 */
|
const val MODE_TEST = 2
|
}
|
|
//获取显示操作时间
|
fun getShowOperationTime(): String?{
|
return operationTime?.dateChangePattern("yyyy-MM-dd HH:mm:ss","yyyy/MM/dd HH:mm:ss")
|
}
|
}
|