Commit df532045 by Aeolus

无效订单查询条件修改

parent 4eb97703
...@@ -110,10 +110,7 @@ class RentService(): ...@@ -110,10 +110,7 @@ class RentService():
def get_invalid_rent_production_info(spot_id, start_time, end_time, page, limit): def get_invalid_rent_production_info(spot_id, start_time, end_time, page, limit):
where = { where = {
Rent.spot_id == spot_id, Rent.spot_id == spot_id,
Production.is_out == 1,
Production.is_return == 1,
Production.total <= 0, Production.total <= 0,
Production.return_hatch_no < 127,
Production.created_at >= start_time, Production.created_at >= start_time,
Production.created_at <= end_time Production.created_at <= end_time
} }
......
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