[fix]
[taxi]
[taxi 虚拟单添加taskid]
This commit is contained in:
yangyakun
2025-01-02 17:02:33 +08:00
parent d9e824630e
commit c019466850
2 changed files with 9 additions and 1 deletions

View File

@@ -92,6 +92,7 @@ data class QueryCurrentTaskRespBean(var data: Result?) : BaseData() {
data class Result(
var sn: String,
var lineId: Long,
var taskId: Long,
var servingStatus: Int,
var currentStatus: Int,
var taskType: Int,

View File

@@ -23,6 +23,7 @@ import com.mogo.eagle.core.function.call.autopilot.CallerPlanningRottingListener
import com.mogo.eagle.core.function.call.och.CallerEagleBaseFunctionCall4OchManager
import com.mogo.eagle.core.function.call.unmanned.CallerUnmannedListenerManager
import com.mogo.eagle.core.network.utils.GsonUtil
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger.d
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger.e
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger.i
@@ -1090,11 +1091,17 @@ object TaxiTaskModel {
if(endStaion!=null){
temp.add(endStaion)
}
val orderId = if(mCurrentTaskWithOrder?.order!=null){
mCurrentTaskWithOrder?.order?.orderNo?:""
}else{
mCurrentTaskWithOrder?.taskId?.toString()
}
CallerLogger.d(TAG,"任务信息:-----orderId:${orderId}")
LineManager.setLineInfo(
LineInfo(
traj.lineId,
traj.lineName,
orderId = mCurrentTaskWithOrder?.order?.orderNo?:"",
orderId = orderId,
siteInfos = temp
)
)