Toggle navigation
Toggle navigation
This project
Loading...
Sign in
yoho-search
/
yoho-search-consumer
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
gemingdan
8 years ago
Commit
73963ef8f921f9e26933084ac4cf2a56681e4a86
1 parent
56a654ce
shopweight 增量
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
consumer/src/main/java/com/yoho/search/mq/ProductSearchMqListener.java
consumer/src/main/java/com/yoho/search/mq/ProductSearchMqListener.java
View file @
73963ef
...
...
@@ -120,11 +120,17 @@ public class ProductSearchMqListener extends AbstractMqListener implements Chann
if
(
productSearch
.
getProjectId
()
==
1
&&
productSearch
.
getModelId
()
==
1
)
{
indexData
.
put
(
"productId"
,
productId
);
indexData
.
put
(
"brandWeight"
,
productSearch
.
getIntValue
());
indexData
.
put
(
"sortWeight"
,
0
);
indexData
.
put
(
"shopWeight"
,
0
);
}
else
if
(
productSearch
.
getProjectId
()
==
4
&&
productSearch
.
getModelId
()
==
1
)
{
indexData
.
put
(
"productId"
,
productId
);
indexData
.
put
(
"sortWeight"
,
productSearch
.
getIntValue
());
indexData
.
put
(
"brandWeight"
,
0
);
indexData
.
put
(
"shopWeight"
,
0
);
}
else
if
(
productSearch
.
getProjectId
()
==
5
&&
productSearch
.
getModelId
()
==
1
)
{
indexData
.
put
(
"productId"
,
productId
);
indexData
.
put
(
"brandWeight"
,
0
);
indexData
.
put
(
"sortWeight"
,
0
);
indexData
.
put
(
"shopWeight"
,
productSearch
.
getIntValue
());
}
...
...
Please
register
or
login
to post a comment