|
@@ -72,10 +72,11 @@ def get_pitcher_panel_daily(pitcher, start, end, page, page_size, order_by, orde
|
|
|
if pitcher != 'all':
|
|
|
sql += f" and pitcher='{pitcher}' "
|
|
|
|
|
|
+ total = ck.execute(f"select count(1) from ({sql}) a")[0][0]
|
|
|
sql += f" group by date,pitcher order by {order_by} {order} limit {(page-1)*page_size},{page_size} "
|
|
|
print(sql)
|
|
|
data = ck.execute(sql)
|
|
|
- total=ck.execute(f"select count(1) from ({sql}) a")[0][0]
|
|
|
+
|
|
|
|
|
|
key=['date','pitcher','cost','first_order_amount','first_roi','order_amount','today_roi','total_cost','total_amount','total_profit','total_roi']
|
|
|
return get_dict_list(key,data),total
|