Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
financial-system
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xianyang
financial-system
Commits
42913a47
Commit
42913a47
authored
Apr 13, 2023
by
xupeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
结算列表代码提交
parent
bcd9f0b2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
views.py
app/api/statement/views.py
+1
-1
guild.py
models/guild.py
+4
-1
No files found.
app/api/statement/views.py
View file @
42913a47
...
...
@@ -57,7 +57,7 @@ def guild_withdrawal_list(request:Request,db: Session = Depends(get_db),page: Op
@
router
.
get
(
"/guild/settlement"
)
def
guild_settlement_list
(
db
:
Session
=
Depends
(
get_db
),
page
:
Optional
[
int
]
=
1
,
size
:
Optional
[
int
]
=
10
,
status
:
Optional
[
int
]
=
''
,
start_time
:
Optional
[
str
]
=
''
,
end_time
:
Optional
[
str
]
=
""
,
guild_id
:
Optional
[
str
]
=
""
):
"""
公会结算
"""
"""
申请结算列表
"""
guild_list
,
total
=
GuildSet
()
.
get_guild_data
(
db
,
page
,
size
,
status
,
start_time
,
end_time
,
guild_id
)
return
HttpResultResponse
(
total
=
total
,
data
=
guild_list
)
...
...
models/guild.py
View file @
42913a47
...
...
@@ -140,11 +140,14 @@ class GuildSettlementLog(Base, SerializerMixin):
work_id
=
Column
(
Integer
,
comment
=
"业务id"
)
guild_id
=
Column
(
Integer
,
comment
=
"公会id"
)
balance
=
Column
(
DECIMAL
(
15
,
3
),
default
=
'0.000'
,
comment
=
"结算时的钻石,RMB单位"
)
bank_name
=
Column
(
String
(
122
),
comment
=
"开户行名称"
)
bank_no
=
Column
(
String
(
122
),
comment
=
"账户名称"
)
guild_name
=
Column
(
String
(
122
),
comment
=
"公会名字"
)
pearl
=
Column
(
DECIMAL
(
15
,
3
),
default
=
'0.000'
,
comment
=
"结算时候的珍珠,RMB单位"
)
status
=
Column
(
Integer
,
comment
=
"0待结算,1待结款,2已完成"
)
create_time
=
Column
(
Integer
,
default
=
'0'
,
comment
=
"创建时间"
)
update_time
=
Column
(
DateTime
,
default
=
'0'
,
comment
=
"修改时间"
)
guild_name
=
Column
(
Integer
,
comment
=
"公会名字
"
)
account_name
=
Column
(
String
(
122
),
comment
=
"户头名称
"
)
guild_per
=
Column
(
String
(
122
),
comment
=
"公会比例"
)
actual_money
=
Column
(
DECIMAL
(
15
,
3
),
default
=
'0.000'
,
comment
=
"实际结款"
)
pledge_deposit_money
=
Column
(
DECIMAL
,
default
=
'0.000'
,
comment
=
"质押金金额"
)
...
...
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