This commit is contained in:
parent
8a83ac695e
commit
a52ed56a66
|
@ -600,5 +600,19 @@ class S:
|
||||||
status_cnt_map[status] += 1
|
status_cnt_map[status] += 1
|
||||||
print(status_cnt_map)
|
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 = S()
|
||||||
s.find_order_ids()
|
s.find_order_ids()
|
||||||
|
|
Loading…
Reference in New Issue