feat: 国际出港理货列表项改航程/航班日期/航班号
始发站和目的站合并为航程(range 为空时回退为始发站-目的站拼接), 新增航班日期、航班号栏位,去掉特码。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -167,6 +167,25 @@ data class GjcMaWb(
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 航程
|
||||
* 优先取 range;为空时用 始发站-目的站 拼接
|
||||
*/
|
||||
val rangeText: String
|
||||
get() {
|
||||
if (!range.isNullOrBlank()) return range!!
|
||||
val d1 = dep?.takeIf { it.isNotBlank() } ?: ""
|
||||
val d2 = dest?.takeIf { it.isNotBlank() } ?: ""
|
||||
return if (d1.isNotEmpty() && d2.isNotEmpty()) "$d1-$d2" else d1 + d2
|
||||
}
|
||||
|
||||
/**
|
||||
* 航班日期(格式化)
|
||||
* 格式: yyyy-MM-dd
|
||||
*/
|
||||
val flightDateText: String
|
||||
get() = fdate?.let { SimpleDateFormat("yyyy-MM-dd", Locale.getDefault()).format(it) } ?: ""
|
||||
|
||||
/**
|
||||
* 清仓正常状态中文
|
||||
* 0-否,1-是
|
||||
|
||||
Reference in New Issue
Block a user