[6.6.0]
[shuttle] [插入多条数据]
This commit is contained in:
@@ -62,10 +62,7 @@ class BusRoutesResponse : BaseData() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
LineManager.setLineInfo(lineInfo)
|
LineManager.setLineInfo(lineInfo)
|
||||||
LineManager.startStation = currentStation
|
|
||||||
if (currentStationIndex < result.size-1) {
|
|
||||||
LineManager.endStation = result[currentStationIndex + 1]
|
|
||||||
}
|
|
||||||
return Pair(result,currentStationIndex)
|
return Pair(result,currentStationIndex)
|
||||||
}
|
}
|
||||||
fun bean2Db(sites: MutableList<BusStationBean>,lineId:Long,lineName:String?,taskId:Long) {
|
fun bean2Db(sites: MutableList<BusStationBean>,lineId:Long,lineName:String?,taskId:Long) {
|
||||||
|
|||||||
@@ -284,6 +284,13 @@ object BusLineModel {
|
|||||||
val db2Beans = BusRoutesResponse.db2Beans(runnintTaskAndSites)
|
val db2Beans = BusRoutesResponse.db2Beans(runnintTaskAndSites)
|
||||||
stationList = db2Beans.first
|
stationList = db2Beans.first
|
||||||
startStationIndex = db2Beans.second
|
startStationIndex = db2Beans.second
|
||||||
|
stationList?.let {stationlist->
|
||||||
|
LineManager.startStation = stationlist[startStationIndex]
|
||||||
|
if (startStationIndex < stationlist.size-1) {
|
||||||
|
LineManager.endStation = stationlist[startStationIndex + 1]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
// 设置自动驾驶信息
|
// 设置自动驾驶信息
|
||||||
currentTask?.lineId?.let {
|
currentTask?.lineId?.let {
|
||||||
|
|||||||
@@ -109,7 +109,6 @@ class BusSwitchLineActivity : MvpActivity<BusSwitchLineView?, BusLinePresenter?>
|
|||||||
}
|
}
|
||||||
animator?.start()
|
animator?.start()
|
||||||
}
|
}
|
||||||
mPresenter?.setRefreshTime()
|
|
||||||
pb_start_task.progressTintList = ColorStateList.valueOf(Color.WHITE)
|
pb_start_task.progressTintList = ColorStateList.valueOf(Color.WHITE)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -133,6 +132,7 @@ class BusSwitchLineActivity : MvpActivity<BusSwitchLineView?, BusLinePresenter?>
|
|||||||
*/
|
*/
|
||||||
private fun initDatas() {
|
private fun initDatas() {
|
||||||
mPresenter?.queryBusLines()
|
mPresenter?.queryBusLines()
|
||||||
|
mPresenter?.setRefreshTime()
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -246,7 +246,6 @@ class BusSwitchLineActivity : MvpActivity<BusSwitchLineView?, BusLinePresenter?>
|
|||||||
//切换路线提交
|
//切换路线提交
|
||||||
if (v.id == R.id.switch_line_btn_commit) {
|
if (v.id == R.id.switch_line_btn_commit) {
|
||||||
if(mAdapter.checkLine!=null&&mAdapter.checkTask!=null){
|
if(mAdapter.checkLine!=null&&mAdapter.checkTask!=null){
|
||||||
mPresenter?.commitSwitchLineId(mAdapter.checkTask!!,mAdapter.checkLine!!)
|
|
||||||
mPresenter?.let {
|
mPresenter?.let {
|
||||||
it.commitSwitchLineId(mAdapter.checkTask!!,mAdapter.checkLine!!)
|
it.commitSwitchLineId(mAdapter.checkTask!!,mAdapter.checkLine!!)
|
||||||
startTaskLoading()
|
startTaskLoading()
|
||||||
|
|||||||
Reference in New Issue
Block a user