Commit 7defbc5a by Aeolus

update

parent 9f4ac75c
...@@ -435,6 +435,7 @@ def run_draw_list(): ...@@ -435,6 +435,7 @@ def run_draw_list():
draw_record.draw_time, draw_record.draw_time,
draw_record.created_at, draw_record.created_at,
draw_record.updated_at, draw_record.updated_at,
draw_record.id,
business.business_name business.business_name
""" """
count_sql = " select count(draw_record.id) as total_count " count_sql = " select count(draw_record.id) as total_count "
...@@ -482,7 +483,7 @@ def run_draw_list(): ...@@ -482,7 +483,7 @@ def run_draw_list():
tmp = { tmp = {
"business_id": info.business_id, "draw_month": info.draw_month, "total": info.total, "business_id": info.business_id, "draw_month": info.draw_month, "total": info.total,
"real_total": info.real_total, "rate": info.rate, "status": info.status, "real_total": info.real_total, "rate": info.rate, "status": info.status,
"business_name": info.business_name, "business_name": info.business_name, "id": info.id,
"create_time": info.created_at.strftime("%Y-%m-%d %H:%M:%S"), "create_time": info.created_at.strftime("%Y-%m-%d %H:%M:%S"),
"draw_time": info.draw_time.strftime("%Y-%m-%d %H:%M:%S") if info.draw_time else "", "draw_time": info.draw_time.strftime("%Y-%m-%d %H:%M:%S") if info.draw_time else "",
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment