[fea]
[all]
[LineInfo 中添加 线路中所有的站点]
This commit is contained in:
yangyakun
2024-12-26 11:28:26 +08:00
parent c472347d37
commit 47bb6ec86d
7 changed files with 69 additions and 12 deletions

View File

@@ -16,6 +16,23 @@ data class LineInfo(
*/
var multiMap: MutableMap<String,String>? = mutableMapOf(),
val orderId:String?=null
val orderId:String?=null,
)
/**
* 站点包含的线路
*/
var siteInfos:MutableList<BusStationBean> = mutableListOf(),
) {
fun genAutopilotId(): String {
val tempAutopilotId = StringBuilder()
tempAutopilotId.append(lineId)
siteInfos.forEach {
tempAutopilotId.append("_")
tempAutopilotId.append(it.siteId)
}
tempAutopilotId.append("_")
tempAutopilotId.append(orderId)
return tempAutopilotId.toString()
}
}