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 edbb9e74
authored
May 23, 2023
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
处理记录仪分摊脚本
1 parent
bfd26a13
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
fentan_0522/base_create_table.py
fentan_0522/deal02.py
fentan_0522/base_create_table.py
View file @
edbb9e7
...
...
@@ -4,7 +4,7 @@ from my_utils.MysqlUtility import MySQL
logger
=
logging
.
getLogger
(
'deal_equity_data'
)
logger
.
setLevel
(
logging
.
DEBUG
)
fileHandler
=
logging
.
FileHandler
(
'../
20230404
/import.log'
)
fileHandler
=
logging
.
FileHandler
(
'../
fentan_0522
/import.log'
)
fileHandler
.
setLevel
(
logging
.
DEBUG
)
formatter
=
logging
.
Formatter
(
'
%(asctime)
s -
%(name)
s -
%(levelname)
s -
%(message)
s'
)
cnslhandler
=
logging
.
StreamHandler
()
...
...
@@ -23,13 +23,13 @@ saas_shen_db_cfg = {'host': '192.168.3.222',
'port'
:
3306
,
'user'
:
'biz_audit'
,
'passwd'
:
'hqVIs6jF'
,
'db'
:
'saas_shen'
,
'db'
:
'saas_shen
_ft
'
,
'charset'
:
'utf8'
}
class
BaseCreateTable
:
def
__init__
(
self
,
base_table
=
'temp_d
evice_details_ft'
,
zj_table
=
'temp_device_details
_zj'
):
def
__init__
(
self
,
base_table
=
'temp_d
j_device_details_modify_serins_record_ft'
,
zj_table
=
'temp_dj_device_details_modify_serins_record
_zj'
):
self
.
bizConn
=
MySQL
(
saas_shen_db_cfg
)
self
.
base_table
=
base_table
self
.
zj_table
=
zj_table
...
...
fentan_0522/deal02.py
View file @
edbb9e7
This diff is collapsed.
Click to expand it.
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