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
4c7af5f5
Commit
4c7af5f5
authored
Feb 25, 2021
by
魏强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退款备注不是必传;
parent
7f83d593
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Controller/RentController.py
+1
-1
Model/Rent/RentRefundModel.py
+1
-1
No files found.
Controller/RentController.py
View file @
4c7af5f5
...
...
@@ -425,7 +425,7 @@ def rent_money_refund_new():
comment
=
json_data
[
'comment'
]
if
'comment'
in
json_data
else
''
time_price
=
json_data
[
'time_price'
]
if
'time_price'
in
json_data
else
[]
if
not
rent_no
or
not
hatch_no
or
not
cause
or
not
comment
or
not
time_price
:
if
not
rent_no
or
not
hatch_no
or
not
cause
or
not
time_price
:
return
jsonify
(
PARAMETER_ERROR
)
rent_info
=
db
.
session
.
query
(
Production
,
Rent
)
.
join
(
Rent
,
Rent
.
id
==
Production
.
rent_id
)
.
filter
(
...
...
Model/Rent/RentRefundModel.py
View file @
4c7af5f5
...
...
@@ -11,5 +11,5 @@ class RentRefund(BaseModel):
refund_no
=
Column
(
String
(
191
,
'utf8mb4_unicode_ci'
),
nullable
=
False
)
production_id
=
Column
(
Integer
,
server_default
=
FetchedValue
(),
nullable
=
False
)
fee
=
Column
(
Integer
,
server_default
=
FetchedValue
(),
nullable
=
False
)
comment
=
Column
(
Text
(
collation
=
'utf8mb4_unicode_ci'
)
,
nullable
=
False
)
comment
=
Column
(
Text
(
collation
=
'utf8mb4_unicode_ci'
))
cause
=
Column
(
String
(
191
,
'utf8mb4_unicode_ci'
))
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