Commit 954ce96b by 魏强

update;

parent 2a3da924
......@@ -220,6 +220,7 @@ class ReportService():
Rent.spot_id == spot_id,
}
income = 0
total = 0
if data_type == 1:
where.add(Rent.created_at >= date + ' 00:00:00')
where.add(Rent.created_at <= date + ' 23:59:59')
......@@ -243,4 +244,4 @@ class ReportService():
}
data.append(tmp)
return income, total_rent, data
return income, total, data
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