[6.8.4]
[fea] [all] [LineInfo 中添加 线路中所有的站点]
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user