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
3bd7fcff
Commit
3bd7fcff
authored
Mar 31, 2023
by
xianyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化转账显示问题
parent
ebf13841
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
guild.py
app/api/statement/guild.py
+1
-1
result_format.py
libs/result_format.py
+0
-1
No files found.
app/api/statement/guild.py
View file @
3bd7fcff
...
...
@@ -315,7 +315,7 @@ def transfer_money(db: Session, param, h_list):
else
:
out_guild_sql
=
f
"select guild_name from guild where uuid='{param.transfer_id}'"
out_guild
=
LinkMysql
(
env
.
DB_3YV2
)
.
query_mysql
(
out_guild_sql
)
dst_name
=
out_guild
[
0
][
'guild_name'
]
if
out_guild
else
""
dst_name
=
out_guild
[
0
][
'guild_name'
]
if
out_guild
else
param
.
transfer_id
amount_type
=
amount_type_dict
.
get
(
param
.
transfer_type
)
if
amount_type_dict
.
get
(
param
.
transfer_type
)
else
1
try
:
...
...
libs/result_format.py
View file @
3bd7fcff
...
...
@@ -27,7 +27,6 @@ class DecimalEncoder(json.JSONEncoder):
if
isinstance
(
res
,
decimal
.
Decimal
):
return
float
(
res
)
if
isinstance
(
res
,
datetime
):
print
(
res
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
))
return
res
.
strftime
(
"
%
Y-
%
m-
%
d
%
H:
%
M:
%
S"
)
super
(
DecimalEncoder
,
self
)
.
default
(
res
)
...
...
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