...
|
...
|
@@ -159,6 +159,13 @@ 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("status")||!jsonObject.get("status").toString().equals("1")) {
|
|
|
continue;
|
|
|
}
|
|
|
if (!jsonObject.containsKey("storage_num")||((Integer)jsonObject.get("storage_num"))<1) {
|
|
|
continue;
|
|
|
}
|
|
|
if (jsonObject.containsKey("color_id")) {
|
|
|
colorIdSet.add(jsonObject.get("color_id").toString());
|
|
|
}
|
...
|
...
|
|