Przeglądaj źródła

优化查询每日对账

peng 1 rok temu
rodzic
commit
49539f23cc
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      AdminController/ServeManagementController.py

+ 2 - 0
AdminController/ServeManagementController.py

@@ -1285,6 +1285,8 @@ class serveManagement(View):
                                                                   "paypal_num", "paypal_total", "time").order_by(
                 '-time')[(page - 1) * line:page * line]
             for item in daily_reconciliation_qs:
+                item['ansjer_handle'] = 0 if item['ansjer_total'] and item['ansjer_num'] else 1
+                item['paypal_handle'] = 0 if item['paypal_total'] and item['paypal_num'] else 1
                 item['order_info'] = []
                 if not item['order_ids']:
                     continue