This commit is contained in:
yangfan
2025-10-17 17:44:24 +08:00
parent a6c4e8d8ba
commit cc9f3e21c9
7 changed files with 1257 additions and 2514 deletions

View File

@@ -90,8 +90,8 @@ def extract_orders(ws, start_row: int, end_row: int, merged_ranges) -> List[Dict
amount = get_merged_cell_value(ws, row, 9, merged_ranges) # I列
account_name = get_merged_cell_value(ws, row, 15, merged_ranges) # O列
# 跳过空订单号的行
if order_num is None or str(order_num).strip() == '':
# 跳过金额为空的行(金额是必需的),但订单号可以为
if amount is None:
continue
order = {