...
|
...
|
@@ -174,11 +174,11 @@ public class GoodsMqListener extends AbstractMqListener implements ChannelAwareM |
|
|
JSONArray goodsListJsonArray = JSONArray.parseArray(goodsListJsonArrayStr);
|
|
|
for (int i = 0; i < goodsListJsonArray.size(); i++) {
|
|
|
JSONObject jsonObject = goodsListJsonArray.getJSONObject(i);
|
|
|
if (jsonObject.containsKey("colorId")) {
|
|
|
colorIdSet.add(jsonObject.get("colorId").toString());
|
|
|
if (jsonObject.containsKey("color_id")) {
|
|
|
colorIdSet.add(jsonObject.get("color_id").toString());
|
|
|
}
|
|
|
if (jsonObject.containsKey("colorName")) {
|
|
|
colorNameSet.add(jsonObject.get("colorName").toString());
|
|
|
if (jsonObject.containsKey("color_name")) {
|
|
|
colorNameSet.add(jsonObject.get("color_name").toString());
|
|
|
}
|
|
|
}
|
|
|
indexData.put("goodsList", goodsListJsonArray);
|
...
|
...
|
|