Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
python_shell
/
pythonworkspace
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 25268c04
authored
Jun 26, 2026
by
潘诗林
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
配置修改
1 parent
9089d034
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
djcardrenewal/common/dbase/DbConect.py
djcardrenewal/saasadd_caiwubatch/caiwubatchsqlcreate.py
djcardrenewal/common/dbase/DbConect.py
View file @
25268c0
# 广联DJ
# 广联DJ
dj_release_slave
=
{
"host"
:
'
47.115.93.31'
,
"port"
:
3306
,
"user"
:
'user_wangxw1'
,
"password"
:
'wbOTHHX5'
,
"db"
:
'glsx_dj
'
,
"charset"
:
'utf8'
}
dj_release_slave
=
{
"host"
:
'
192.168.5.23'
,
"port"
:
3306
,
"user"
:
'user_linchong'
,
"password"
:
'KIaQdbLn'
,
"db"
:
'dj_smartcarlife
'
,
"charset"
:
'utf8'
}
# 广汇DJ
# 广汇DJ
djGH_release_slave
=
{
"host"
:
'47.97.203.216'
,
"port"
:
3306
,
"user"
:
'user_wangxw1'
,
"password"
:
'wbOTHHX5'
,
"db"
:
'glsx_dj'
,
"charset"
:
'utf8'
}
djGH_release_slave
=
{
"host"
:
'47.97.203.216'
,
"port"
:
3306
,
"user"
:
'user_wangxw1'
,
"password"
:
'wbOTHHX5'
,
"db"
:
'glsx_dj'
,
"charset"
:
'utf8'
}
...
...
djcardrenewal/saasadd_caiwubatch/caiwubatchsqlcreate.py
View file @
25268c0
...
@@ -7,12 +7,12 @@ from djcardrenewal.common.dbase.MysqlHelper import MysqlHelper
...
@@ -7,12 +7,12 @@ from djcardrenewal.common.dbase.MysqlHelper import MysqlHelper
from
djcardrenewal.common.dbase
import
DbConect
from
djcardrenewal.common.dbase
import
DbConect
sourcePro
=
'U260
5271648553410008,U2504200151069900018,MG2026052817061966004;U2605271648553410010,U2504200151069900020,MG2026052817062332335;U2605271648553410012,U2504200151069900021,MG2026052817062754084;U2605271648553410009,U2504200151069900019,MG2026052817063022180;U2605271648553410011,U2504200151069900022,MG2026052817063395392;U2605271648553410013,U2504200151069900023,MG2026052817063761667;U2605271803409840009,U2412251821196430010,MG2026052817064086554;U2605271803409840010,U2412251821196430010,MG2026052817064482035;U2605271803409840004,U2412251821196430012,MG2026052817064888089;U2605271803409840005,U2412251821196430011,MG2026052817065173670;U2605271803409840006,U2412251821196430011,MG2026052817065446954;U2605271803409840008,U2412251821196430013,MG2026052817065818331;U2605271701126020014,U2508041358033720010,MG2026052817070122836;U2605271701126020015,U2508041358033720010,MG2026052817070575408;U2605271701126020018,U2508041358033720012,MG2026052817070847367;U2605271701126020016,U2508041358033720011,MG2026052817071289830;U2605271701126020017,U2508041358033720011,MG2026052817071685491;U2605271701126020019,U2508041358033720013,MG2026052817071970155
'
sourcePro
=
'U260
6241758373080002,U2412251821196430002,MG2026062518502557815;U2606241758373080004,U2604171653348370002,MG2026062518503063473;U2606241758373080005,U2604171653348370003,MG2026062518503419455;U2606241758373080007,U2509231926261410006,MG2026062518503861363;U2606241758373080006,U2509231926261410006,MG2026062518504211920;U2606241758373080008,U2509231926261410006,MG2026062518504545194;U2606241758373080009,U2509231926261410006,MG2026062518504923381;U2606241758373080011,U2412251821196430018,MG2026062518505261549;U2606241758373080012,U2412251821196430018,MG2026062518505557260;U2606241758373080014,U2605271803409840009,MG2026062518505823712;U2606241758373080015,U2605271803409840009,MG2026062518510327447;U2606241758373080016,U2605271803409840009,MG2026062518510732422;U2606241758373080017,U2605271803409840009,MG2026062518511172958;U2606241758373080018,U2605271803409840009,MG2026062518511461671;U2606241758373080022,U2412251821196430002,MG2026062518511834924;U2606241758373080019,U2604171653348370011,MG2026062518512184563;U2606241758373080010,U2509231926261410006,MG2026062518512455760;U2606241758373080013,U2412251821196430018,MG2026062518512864535;U2606241758373080020,U2605271803409840009,MG2026062518513113840;U2606241758373080021,U2605271803409840009,MG2026062518513579787
'
merchantIds
=
'44213763,44211844,44211644,44215210,44214154,44214992,44211914,44212690,44215713,44215543,44215196,44215197,44215198,44214232,44214387,44214026,44214027,44215415,44212653,44215413,44215414,44215092,44214755,44215099,44211600,44211853,44211889,44212129,44211651,44212813,4421
1825,44212814,44215373,44206253,44215106,44215187,44214837,44214899,44214946,44214951,44214966,44214742,44215186,44215188,44215190,44214923,44190589,44205697,44215189,44215182,44214025,44214382,44211664,44215212,44215081,44186335,44214157,44214435,44215407,44212635,44211870,44214590,44213783,44214053,44215240,44212964,44215351,44214137,44211085,44212978,44211623,44216458,44216457,44214101,44215271,44215611,44215422,44191926,44191990,44212443,44215124,44213999,44212127,44211698,44211700,44211699,44213218,44212434,44212233,44213988,44213785,44211894,44211937,44214180,44211893,44212085,44212091,44212770,44213746,44214135,44213741,44215262,44214407,44211749,44214379,44215644,44212793,44212307,44215474,44214538,44215147,44215442,44215534,44212050,44212048,44215563,44215126,44216506,44216505,44216508,44216552,44216507,44216734,44216696,44216813,44216807,44216851,44216969,44216998,44216815,44216971,44217075,44217186,44217111,44217135,44210094,44214930
'
merchantIds
=
'44213763,44211844,44211644,44215210,44214154,44214992,44211914,44212690,44215713,44215543,44215196,44215197,44215198,44214232,44214387,44214026,44214027,44215415,44212653,44215413,44215414,44215092,44214755,44215099,44211600,44211853,44211889,44212129,44211651,44212813,4421
5373,44206253,44215106,44215187,44214837,44214899,44214946,44214951,44214966,44214742,44215186,44215188,44215190,44214923,44190589,44205697,44215189,44215182,44214025,44214382,44211664,44211604,44215212,44215081,44186335,44214157,44214435,44215407,44212635,44211870,44214590,44213783,44214053,44215240,44212964,44215351,44214137,44211085,44212978,44211623,44216458,44216457,44214101,44215271,44215611,44215422,44191926,44191990,44212443,44215124,44213999,44212127,44211698,44211700,44211699,44213218,44212434,44212233,44213988,44213785,44211894,44211937,44214180,44211893,44212085,44212091,44212770,44213746,44214135,44213741,44215262,44214407,44211749,44214379,44215644,44212793,44212307,44215474,44214538,44215147,44215442,44215534,44212050,44212048,44215563,44215126,44216506,44216505,44216508,44216552,44216507,44216734,44216696,44216813,44216807,44216851,44216969,44216998,44216815,44216971,44217075,44217186,44217111,44217135,44217502,44217539,44211825
'
operator
=
'
wangxw_sql_20260528
5'
operator
=
'
linchong_sql_2026062
5'
insertBatchSize
=
500
insertBatchSize
=
500
outputSqlFile
=
'caiwubatchsqlcreate_20260
420
.sql'
outputSqlFile
=
'caiwubatchsqlcreate_20260
625
.sql'
log_name
=
'./log/djcardrenewal/handlemain.log'
log_name
=
'./log/djcardrenewal/handlemain.log'
log_format
=
'[
%(asctime)
s-
%(filename)
s-
%(levelname)
s:
%(message)
s]'
log_format
=
'[
%(asctime)
s-
%(filename)
s-
%(levelname)
s:
%(message)
s]'
...
@@ -25,7 +25,7 @@ class CaiWuBatchSqlCreate:
...
@@ -25,7 +25,7 @@ class CaiWuBatchSqlCreate:
def
__init__
(
self
,
created_by
,
batch_size
,
connect_db
=
True
):
def
__init__
(
self
,
created_by
,
batch_size
,
connect_db
=
True
):
self
.
created_by
=
created_by
self
.
created_by
=
created_by
self
.
batch_size
=
batch_size
self
.
batch_size
=
batch_size
self
.
release_db_smartcarlife
=
MysqlHelper
(
DbConect
.
DB_saasadd
_release_slave
)
if
connect_db
else
None
self
.
release_db_smartcarlife
=
MysqlHelper
(
DbConect
.
dj
_release_slave
)
if
connect_db
else
None
def
close
(
self
):
def
close
(
self
):
if
self
.
release_db_smartcarlife
:
if
self
.
release_db_smartcarlife
:
...
@@ -52,7 +52,7 @@ class CaiWuBatchSqlCreate:
...
@@ -52,7 +52,7 @@ class CaiWuBatchSqlCreate:
if
not
new_product_id
or
not
old_product_id
:
if
not
new_product_id
or
not
old_product_id
:
logging
.
warning
(
"skip empty product pair:
%
s"
,
pair_text
)
logging
.
warning
(
"skip empty product pair:
%
s"
,
pair_text
)
continue
continue
pairs
.
append
((
new_product_id
,
old_product_id
,
mg_product_code
))
pairs
.
append
((
new_product_id
,
old_product_id
,
mg_product_code
))
return
pairs
return
pairs
@staticmethod
@staticmethod
...
...
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