Commit e0ba97f8 by Aeolus

update

parent 7defbc5a
......@@ -102,11 +102,13 @@ def create_rent():
rent.rent_type = type
rent.mch_platform = machine.mch_platform
rent.place_id = machine.place_id
rent.business_id = machine.business_id
rent_detail = RentDetail()
rent_detail.rent_no = rent_no
rent_detail.user_id = rent.user_id
rent_detail.machine_no = rent.machine_no
rent_detail.business_id = rent.business_id
rent_detail.hatch_no = open_hatch.hatch_no
rent_detail.production_id = open_hatch.production_id
rent_detail.production_name = open_hatch.production_name
......@@ -242,6 +244,7 @@ def wx_pay_callback():
rent = Rent()
rent.rent_no = rent_no
rent.machine_no = machine.machine_no
rent.business_id = machine.business_id
rent.user_id = user_id
rent.place_id = machine.place_id
rent.total = int(callback_data["total_fee"])
......@@ -255,7 +258,6 @@ def wx_pay_callback():
if prepay_id:
rent.prepay_id = prepay_id
total_fee = 0
hatchs = Hatch.query.filter(Hatch.machine_no == machine_no, Hatch.hatch_no.in_(open_hatchs.keys())).order_by(
......@@ -266,6 +268,7 @@ def wx_pay_callback():
rent_detail.rent_no = rent_no
rent_detail.user_id = rent.user_id
rent_detail.machine_no = rent.machine_no
rent_detail.business_id = rent.business_id
rent_detail.hatch_no = i.hatch_no
rent_detail.production_id = i.production_id
rent_detail.production_name = i.production_name
......
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