fix: 国际进港仓库列表件数改取 pcLabel 字段
分页接口新增 pcLabel 字段(如 0/8),用于展示已入库/总件数, 列表项件数由 pc 改为优先显示 pcLabel,缺失时回退 pc。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -44,6 +44,7 @@ data class GjcMaWb(
|
||||
|
||||
// ==================== 货物信息 ====================
|
||||
var pc: Long? = null, // 预配件数
|
||||
var pcLabel: String? = null, // 件数展示文本(国际进港仓库分页返回,如 0/8、44)
|
||||
var weight: Double? = null, // 预配重量(KG)
|
||||
var volume: Double? = null, // 预配体积(CBM)
|
||||
var goods: String? = null, // 品名(英)
|
||||
|
||||
@@ -147,7 +147,7 @@
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@{String.valueOf(bean.pc)}"
|
||||
android:text="@{bean.pcLabel ?? String.valueOf(bean.pc)}"
|
||||
android:textSize="15sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
Reference in New Issue
Block a user