Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
deal_mysql_data
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4fc1f210
authored
Apr 14, 2023
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加数据处理脚本--分摊
1 parent
f8063800
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
20230413/deal02.py
20230413/deal02.py
View file @
4fc1f21
...
@@ -49,7 +49,7 @@ def create_table():
...
@@ -49,7 +49,7 @@ def create_table():
def
deal_equity_data
():
def
deal_equity_data
():
bizConn
=
MySQL
(
saas_shen_db_cfg
)
bizConn
=
MySQL
(
saas_shen_db_cfg
)
sql
=
'''
sql
=
'''
SELECT `job_id`, `业务日期`, `收入`, `成本金额`, `分摊期限` FROM ds_job_info_23041302
WHERE LEFT(`业务日期`,4) = '2023'
;
SELECT `job_id`, `业务日期`, `收入`, `成本金额`, `分摊期限` FROM ds_job_info_23041302;
'''
'''
if
not
bizConn
.
query
(
sql
):
if
not
bizConn
.
query
(
sql
):
logger
.
error
(
"deal_equity_data fail, sql=
%
s"
,
sql
)
logger
.
error
(
"deal_equity_data fail, sql=
%
s"
,
sql
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment