فهرست منبع

优化查询每日对账

peng 1 سال پیش
والد
کامیت
251f21b1c1
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      AdminController/ServeManagementController.py

+ 2 - 0
AdminController/ServeManagementController.py

@@ -937,6 +937,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