fix: 数量单价bug修复

This commit is contained in:
fuzhongyun 2026-03-23 09:04:01 +08:00
parent 3c5ac9432b
commit 42c48679a8
1 changed files with 5 additions and 1 deletions

View File

@ -248,7 +248,11 @@ class SCBankProcessor:
"remark": str(row.get("备注", "")) if pd.notna(row.get("备注")) else ""
},
"goodsInfoList": [
{"spuName": str(row.get("产品名称", "未知商品")) if pd.notna(row.get("产品名称")) else "未知商品"}
{
"spuName": str(row.get("产品名称", "未知商品")) if pd.notna(row.get("产品名称")) else "未知商品",
"count": int(row.get("数量", 1)) if pd.notna(row.get("数量")) else 1,
"price": float(row.get("单价", 0.0)) if pd.notna(row.get("单价")) else 0.0,
}
],
"orderAmt": float(row.get("单价", 0.0)) if pd.notna(row.get("单价")) else 0.0,
"exMerchant": "成都蓝色兄弟网络科技有限公司"