Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
岳巧源
/
jd_data_process
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
023e32be
authored
Oct 24, 2024
by
larosa
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update sql
parent
92e52f56
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
crontab.py
vc.py
crontab.py
View file @
023e32be
...
...
@@ -206,7 +206,7 @@ def update_vc_attr(conf: dict):
exists_attr
=
True
for
key
in
origin_attr_map
:
if
origin_attr_map
[
key
]
!=
now_attr_map
[
key
]:
update_sql1
=
"update lie_shop_attr set unit =
%
s, enum_value =
%
s, input_type =
%
s, is_required =
%
s where id =
%
s"
update_sql1
=
"update lie_shop_attr set unit =
%
s, enum_value =
%
s, input_type =
%
s, is_required =
%
s
, is_mapping = 0
where id =
%
s"
cursor
.
execute
(
query
=
update_sql1
,
args
=
(
unit
,
enum_value
,
input_type
,
is_required
,
primary_id
))
db
.
commit
()
print
(
update_sql1
%
(
unit
,
enum_value
,
input_type
,
is_required
,
primary_id
))
...
...
vc.py
View file @
023e32be
...
...
@@ -378,4 +378,5 @@ def get_vc_goods_info(ware_id: str):
if
__name__
==
'__main__'
:
pass
\ No newline at end of file
pass
# mysqldump -u DsbuUx -h bigdata2.ichunt.db -p liexin_data_distribution lie_shop_class > /data/tmp/lie_shop_class.sql
\ No newline at end of file
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