This commit is contained in:
lwl0608 2024-11-11 22:04:32 +08:00
parent 8a83ac695e
commit a52ed56a66
1 changed files with 14 additions and 0 deletions

View File

@ -600,5 +600,19 @@ class S:
status_cnt_map[status] += 1
print(status_cnt_map)
refund_amount = 0
for d in docs:
status = safe_get_int(d, "order_status")
if status != 3:
continue
order_id = safe_get_int(d, "id")
pay_amount = safe_get_int(d, "pay_amount")
print(order_id, pay_amount)
refund_amount += pay_amount
print(refund_amount)
s = S()
s.find_order_ids()