Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lzzzzl
/
param_data
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
20f6fa41
authored
Nov 10, 2020
by
lzzzzl
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
更新attr_values mongo处理
parent
9ccb4ad5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
fun/param_data.py
fun/param_data.py
View file @
20f6fa41
...
@@ -243,5 +243,5 @@ class ParamData(object):
...
@@ -243,5 +243,5 @@ class ParamData(object):
@staticmethod
@staticmethod
def
get_spu
(
index
,
spu_conn
):
def
get_spu
(
index
,
spu_conn
):
sql
=
"SELECT spu_id,attr_values FROM lie_spu_
%
d WHERE class_id1 != 0 AND class_id2 != 0
\
sql
=
"SELECT spu_id,attr_values FROM lie_spu_
%
d WHERE class_id1 != 0 AND class_id2 != 0
\
AND attr_values != '' ORDER BY spu_id
LIMIT 100
"
%
index
AND attr_values != '' ORDER BY spu_id"
%
index
return
DBHandler
.
read
(
spu_conn
,
sql
)
return
DBHandler
.
read
(
spu_conn
,
sql
)
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