From 45bd586e7ad5e0669d498e6f0866c069f8ace68f Mon Sep 17 00:00:00 2001 From: lvmeng <848755140@qq.com> Date: Thu, 25 Jun 2026 11:31:14 +0800 Subject: [PATCH] =?UTF-8?q?refactor(model):=20=E6=9B=B4=E6=96=B0PendingInb?= =?UTF-8?q?oundItem=E6=95=B0=E6=8D=AE=E6=A8=A1=E5=9E=8B=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将vegTypeId从Int类型改为Long?可空类型,默认值为null - 将vegTypeName从String类型改为String?可空类型,默认值为null - 将spec从String类型改为String?可空类型,默认值为null - 所有修改的字段都设置了默认值以保持向后兼容性 --- .../com/sw/scalefusion/shelf/model/PendingInboundItem.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/sw/scalefusion/shelf/model/PendingInboundItem.kt b/app/src/main/java/com/sw/scalefusion/shelf/model/PendingInboundItem.kt index 4cc89f7..ca7d989 100644 --- a/app/src/main/java/com/sw/scalefusion/shelf/model/PendingInboundItem.kt +++ b/app/src/main/java/com/sw/scalefusion/shelf/model/PendingInboundItem.kt @@ -14,9 +14,9 @@ data class PendingInboundItem( val weight: Double = 0.0, val inboundNo: String = "", val inboundTime: String? = null, - val vegTypeId:Int, - val vegTypeName:String, - val spec:String, + val vegTypeId: Long? = null, + val vegTypeName: String? = null, + val spec: String? = null, var isSelected: Boolean = false ) {