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
6eff1a03
Commit
6eff1a03
authored
Apr 17, 2023
by
xianyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化业务类型汇总查询
parent
ee72d935
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
crud.py
app/api/export/crud.py
+4
-0
requirements.txt
requirements.txt
+1
-0
No files found.
app/api/export/crud.py
View file @
6eff1a03
...
...
@@ -8,6 +8,7 @@ from libs.functions import get_now_datetime
from
libs.orm
import
QueryAllData
from
models.export
import
ExportFile
import
pandas
as
pd
from
xpinyin
import
Pinyin
from
starlette.responses
import
StreamingResponse
...
...
@@ -85,6 +86,9 @@ class CalculationMonthlyBill(object):
assert_list
.
append
(
f
" reference_type in{tuple(k_list)}"
)
if
len
(
k_list
)
==
1
:
assert_list
.
append
(
f
" reference_type='{k_list[0]}'"
)
if
not
k_list
:
py
=
Pinyin
()
.
get_pinyin
(
name
)
assert_list
.
append
(
f
" reference_type='{py.replace('-', '')}'"
)
if
key_type
:
assert_list
.
append
(
f
" reference_type like '
%
{key_type}
%
'"
)
if
assert_list
:
...
...
requirements.txt
View file @
6eff1a03
...
...
@@ -44,3 +44,4 @@ uvicorn==0.20.0
xmltodict
==0.13.0
openpyxl
==3.1.2
redis
==4.3.4
xpinyin
==0.7.6
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