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
a54a6f84
Commit
a54a6f84
authored
Jun 24, 2020
by
Aeolus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退款接口修改代理商收入字段
parent
abb82ccf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
Controller/RentController.py
+6
-0
No files found.
Controller/RentController.py
View file @
a54a6f84
...
@@ -183,6 +183,7 @@ def rent_refund():
...
@@ -183,6 +183,7 @@ def rent_refund():
try
:
try
:
rent
.
total
=
rent
.
total
+
total
rent
.
total
=
rent
.
total
+
total
rent
.
real_total
=
rent
.
real_total
+
total
rent
.
real_total
=
rent
.
real_total
+
total
rent
.
agent_total
=
rent
.
real_total
+
total
rent
.
is_over
=
1
rent
.
is_over
=
1
rent
.
over_time
=
datetime
.
datetime
.
now
()
.
strftime
(
'
%
Y-
%
m-
%
d
%
H:
%
M:
%
S'
)
rent
.
over_time
=
datetime
.
datetime
.
now
()
.
strftime
(
'
%
Y-
%
m-
%
d
%
H:
%
M:
%
S'
)
rent
.
back_money
=
rent
.
back_money
+
refund_money
rent
.
back_money
=
rent
.
back_money
+
refund_money
...
@@ -192,6 +193,7 @@ def rent_refund():
...
@@ -192,6 +193,7 @@ def rent_refund():
production
.
return_machine_id
=
production_info
.
Machine
.
id
production
.
return_machine_id
=
production_info
.
Machine
.
id
production
.
return_time
=
back_time
production
.
return_time
=
back_time
production
.
total
=
total
production
.
total
=
total
production
.
agent_total
=
total
production
.
is_refund
=
1
production
.
is_refund
=
1
production
.
refund_no
=
refund_no
production
.
refund_no
=
refund_no
if
refund_type
==
'1'
:
if
refund_type
==
'1'
:
...
@@ -412,6 +414,7 @@ def force_refund():
...
@@ -412,6 +414,7 @@ def force_refund():
try
:
try
:
rent
.
total
=
rent
.
deposit
-
int
(
money
)
rent
.
total
=
rent
.
deposit
-
int
(
money
)
rent
.
real_total
=
rent
.
deposit
-
int
(
money
)
rent
.
real_total
=
rent
.
deposit
-
int
(
money
)
rent
.
agent_total
=
rent
.
deposit
-
int
(
money
)
rent
.
is_over
=
1
rent
.
is_over
=
1
rent
.
over_time
=
back_time
rent
.
over_time
=
back_time
rent
.
back_money
+=
int
(
money
)
rent
.
back_money
+=
int
(
money
)
...
@@ -420,6 +423,7 @@ def force_refund():
...
@@ -420,6 +423,7 @@ def force_refund():
production
.
return_machine_id
=
production
.
rent_machine_id
production
.
return_machine_id
=
production
.
rent_machine_id
production
.
return_time
=
back_time
production
.
return_time
=
back_time
production
.
total
=
rent
.
deposit
-
int
(
money
)
production
.
total
=
rent
.
deposit
-
int
(
money
)
production
.
agent_total
=
rent
.
deposit
-
int
(
money
)
production
.
is_refund
=
1
production
.
is_refund
=
1
production
.
refund_no
=
rent_refund_no
production
.
refund_no
=
rent_refund_no
production
.
return_hatch_no
=
production
.
rent_hatch_no
production
.
return_hatch_no
=
production
.
rent_hatch_no
...
@@ -506,6 +510,7 @@ def rent_money_liuyuan():
...
@@ -506,6 +510,7 @@ def rent_money_liuyuan():
try
:
try
:
rent_info
.
Rent
.
total
-=
int
(
money
)
rent_info
.
Rent
.
total
-=
int
(
money
)
rent_info
.
Rent
.
real_total
-=
int
(
money
)
rent_info
.
Rent
.
real_total
-=
int
(
money
)
rent_info
.
Rent
.
agent_total
-=
int
(
money
)
rent_info
.
Rent
.
back_money
+=
int
(
money
)
rent_info
.
Rent
.
back_money
+=
int
(
money
)
# rent_refund_log = RentRefund()
# rent_refund_log = RentRefund()
...
@@ -517,6 +522,7 @@ def rent_money_liuyuan():
...
@@ -517,6 +522,7 @@ def rent_money_liuyuan():
# rent_refund_log.updated_at = datetime.datetime.now()
# rent_refund_log.updated_at = datetime.datetime.now()
rent_info
.
Production
.
total
-=
int
(
money
)
rent_info
.
Production
.
total
-=
int
(
money
)
rent_info
.
Production
.
agent_total
-=
int
(
money
)
# db.session.add(rent_refund_log)
# db.session.add(rent_refund_log)
db
.
session
.
add
(
rent_info
.
Rent
)
db
.
session
.
add
(
rent_info
.
Rent
)
...
...
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