Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tour_business
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
魏强
tour_business
Commits
c746330f
Commit
c746330f
authored
Jun 15, 2020
by
魏强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qwe;
parent
46938a5f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
Service/RentService.py
+22
-0
No files found.
Service/RentService.py
View file @
c746330f
...
...
@@ -96,6 +96,28 @@ class RentService():
@staticmethod
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
=
'''
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,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment