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
4fd284dd
Commit
4fd284dd
authored
Apr 14, 2023
by
xianyang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop/xp' into development
# Conflicts: # app/api/statement/guild.py # models/guild.py
parents
42ba5af3
76ca98d3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
14 deletions
+16
-14
misc.xml
.idea/misc.xml
+1
-1
guild.py
app/api/statement/guild.py
+9
-10
views.py
app/api/statement/views.py
+1
-1
guild.py
models/guild.py
+5
-2
No files found.
.idea/misc.xml
View file @
4fd284dd
...
@@ -3,5 +3,5 @@
...
@@ -3,5 +3,5 @@
<component
name=
"JavaScriptSettings"
>
<component
name=
"JavaScriptSettings"
>
<option
name=
"languageLevel"
value=
"ES6"
/>
<option
name=
"languageLevel"
value=
"ES6"
/>
</component>
</component>
<component
name=
"ProjectRootManager"
version=
"2"
project-jdk-name=
"Python 3.8 (financial
-
system)"
project-jdk-type=
"Python SDK"
/>
<component
name=
"ProjectRootManager"
version=
"2"
project-jdk-name=
"Python 3.8 (financial
_
system)"
project-jdk-type=
"Python SDK"
/>
</project>
</project>
\ No newline at end of file
app/api/statement/guild.py
View file @
4fd284dd
...
@@ -102,15 +102,15 @@ class GuildSet(object):
...
@@ -102,15 +102,15 @@ class GuildSet(object):
count
=
db
.
query
(
func
.
count
(
GuildSettlementLog
.
id
))
.
filter
()
.
scalar
()
count
=
db
.
query
(
func
.
count
(
GuildSettlementLog
.
id
))
.
filter
()
.
scalar
()
return
list
,
count
return
list
,
count
def
update_guild_info
(
self
,
data
):
#
def update_guild_info(self, data):
"""公会结算修改"""
#
"""公会结算修改"""
id
=
data
.
get
(
"id"
)
#
id = data.get("id")
guild_sql
=
f
"SELECT count(*) FROM `guild_settlement_log` where id={id})"
#
guild_sql = f"SELECT count(*) FROM `guild_settlement_log` where id={id})"
guild_data
=
self
.
linkmysql
.
query_mysql
(
guild_sql
)
#
guild_data = self.linkmysql.query_mysql(guild_sql)
if
guild_data
:
#
if guild_data:
status
=
1
if
data
.
get
(
"status"
)
==
0
else
2
#
status = 1 if data.get("status") == 0 else 2
guild_sql
=
f
"UPDATE guild_settlement_log set status={status} where id={id}"
#
guild_sql = f"UPDATE guild_settlement_log set status={status} where id={id}"
self
.
linkmysql
.
excete_mysql
(
guild_sql
)
#
self.linkmysql.excete_mysql(guild_sql)
def
paymentset_guild_data
(
page
,
size
,
start_time
,
end_time
):
def
paymentset_guild_data
(
page
,
size
,
start_time
,
end_time
):
...
@@ -395,7 +395,6 @@ def create_fix_table(db: Session, param, h_list):
...
@@ -395,7 +395,6 @@ def create_fix_table(db: Session, param, h_list):
"timestamp"
:
get_now_timestamp
()
"timestamp"
:
get_now_timestamp
()
}
}
clearing_res
=
search
(
data
,
method
)
clearing_res
=
search
(
data
,
method
)
print
(
clearing_res
)
if
clearing_res
[
'status'
]:
if
clearing_res
[
'status'
]:
unique_res
=
[]
unique_res
=
[]
if
param
.
type
==
0
:
if
param
.
type
==
0
:
...
...
app/api/statement/views.py
View file @
4fd284dd
...
@@ -62,7 +62,7 @@ def guild_withdrawal_list(request:Request,db: Session = Depends(get_db),page: Op
...
@@ -62,7 +62,7 @@ def guild_withdrawal_list(request:Request,db: Session = Depends(get_db),page: Op
@
router
.
get
(
"/guild/settlement"
)
@
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
]
=
""
):
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
)
guild_list
,
total
=
GuildSet
()
.
get_guild_data
(
db
,
page
,
size
,
status
,
start_time
,
end_time
,
guild_id
)
return
HttpResultResponse
(
total
=
total
,
data
=
guild_list
)
return
HttpResultResponse
(
total
=
total
,
data
=
guild_list
)
...
...
models/guild.py
View file @
4fd284dd
...
@@ -140,11 +140,14 @@ class GuildSettlementLog(Base, SerializerMixin):
...
@@ -140,11 +140,14 @@ class GuildSettlementLog(Base, SerializerMixin):
work_id
=
Column
(
Integer
,
comment
=
"业务id"
)
work_id
=
Column
(
Integer
,
comment
=
"业务id"
)
guild_id
=
Column
(
Integer
,
comment
=
"公会id"
)
guild_id
=
Column
(
Integer
,
comment
=
"公会id"
)
balance
=
Column
(
DECIMAL
(
15
,
3
),
default
=
'0.000'
,
comment
=
"结算时的钻石,RMB单位"
)
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单位"
)
pearl
=
Column
(
DECIMAL
(
15
,
3
),
default
=
'0.000'
,
comment
=
"结算时候的珍珠,RMB单位"
)
status
=
Column
(
Integer
,
comment
=
"0待结算,1待结款,2已完成"
)
status
=
Column
(
Integer
,
comment
=
"0待结算,1待结款,2已完成"
)
create_time
=
Column
(
Integer
,
default
=
'0'
,
comment
=
"创建时间"
)
create_time
=
Column
(
Integer
,
default
=
'0'
,
comment
=
"创建时间"
)
update_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
=
"公会比例"
)
guild_per
=
Column
(
String
(
122
),
comment
=
"公会比例"
)
actual_money
=
Column
(
DECIMAL
(
15
,
3
),
default
=
'0.000'
,
comment
=
"实际结款"
)
actual_money
=
Column
(
DECIMAL
(
15
,
3
),
default
=
'0.000'
,
comment
=
"实际结款"
)
pledge_deposit_money
=
Column
(
DECIMAL
,
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