Showing
1 changed file
with
2 additions
and
2 deletions
@@ -62,8 +62,8 @@ public class ProductAttributeService { | @@ -62,8 +62,8 @@ public class ProductAttributeService { | ||
62 | values.forEach(v->{ | 62 | values.forEach(v->{ |
63 | JSONObject vobj=(JSONObject)v; | 63 | JSONObject vobj=(JSONObject)v; |
64 | for(int i=0;i<attributeValueIds.length;i++){ | 64 | for(int i=0;i<attributeValueIds.length;i++){ |
65 | - String id=(String)vobj.get("id"); | ||
66 | - if(id!=null&&id.endsWith(attributeValueIds[i])){ | 65 | + Integer id=(Integer)vobj.get("id"); |
66 | + if(id!=null&&attributeValueIds[i].endsWith(id.toString())){ | ||
67 | attributeNameSet.add((String)vobj.get("name")); | 67 | attributeNameSet.add((String)vobj.get("name")); |
68 | } | 68 | } |
69 | } | 69 | } |
-
Please register or login to post a comment