|
@@ -175,7 +175,7 @@ public class FdkkSceneEditService {
|
|
|
|
|
|
private JSONArray getProductByJsonObj(JSONArray tags){
|
|
private JSONArray getProductByJsonObj(JSONArray tags){
|
|
HashMap<String,JSONArray> resultMap = new HashMap<>(); //sid, productId array
|
|
HashMap<String,JSONArray> resultMap = new HashMap<>(); //sid, productId array
|
|
- HashMap<Object,CdfProduct> productMap = new HashMap<>(); //productId cdf
|
|
|
|
|
|
+ HashMap<String,CdfProduct> productMap = new HashMap<>(); //productId cdf
|
|
JSONArray requestArray = new JSONArray(); //productId all array
|
|
JSONArray requestArray = new JSONArray(); //productId all array
|
|
|
|
|
|
List<String> sidsList = new ArrayList<>();
|
|
List<String> sidsList = new ArrayList<>();
|
|
@@ -235,8 +235,9 @@ public class FdkkSceneEditService {
|
|
}
|
|
}
|
|
List<CdfProduct> cdfProductList = new ArrayList<>();
|
|
List<CdfProduct> cdfProductList = new ArrayList<>();
|
|
for (Object o : jsonArray) {
|
|
for (Object o : jsonArray) {
|
|
- if(productMap.get(o)!=null){
|
|
|
|
- cdfProductList.add(productMap.get(o));
|
|
|
|
|
|
+ String key = o.toString();
|
|
|
|
+ if(productMap.get(key)!=null){
|
|
|
|
+ cdfProductList.add(productMap.get(key));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if(cdfProductList.size() >0){
|
|
if(cdfProductList.size() >0){
|