Commit c746330f by 魏强

qwe;

parent 46938a5f
...@@ -96,6 +96,28 @@ class RentService(): ...@@ -96,6 +96,28 @@ class RentService():
@staticmethod @staticmethod
def get_production_detail_new(rent_no, hatch_no): def get_production_detail_new(rent_no, hatch_no):
if not hatch_no:
rent_detail = Rent.query.filter_by(rent_no=rent_no).first()
total_info = []
tmp = {
'deposit': 9900,
'is_return': 1,
'status': 0,
'mac_no': None,
'phone': RentService.get_customer_phone(rent_detail.customer_id),
'real_total': 0,
'rent_no': rent_no,
'rent_over_time': None,
'rent_price': None,
'spot_name': RentService.get_rent_spot_name(rent_detail.spot_id),
'is_refund': 0,
'refund_no': None,
'rent_refund_no': None,
}
total_info.append(tmp)
return total_info
else:
sql = ''' sql = '''
SELECT rent.deposit, rent.is_over, production.is_return, production.total, production.return_hatch_no, SELECT rent.deposit, rent.is_over, production.is_return, production.total, production.return_hatch_no,
production.rent_machine_id, rent.customer_id, rent.real_total, rent.rent_no, production.return_time, production.rent_machine_id, rent.customer_id, rent.real_total, rent.rent_no, production.return_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