Ver código fonte

商品组查询逻辑变更

hu 9 meses atrás
pai
commit
f8b29ce078

+ 9 - 9
src/custom/restcontroller/sale/itemgroup/itemgroup.java

@@ -843,16 +843,16 @@ public class itemgroup extends Controller {
                     }
                 }
                 if (!isexistParm) {
-                    if(list.get(0).equals("color")){
+                    if(list.get(0).equals("spec")){
                         JSONObject jsonObject = new JSONObject();
                         jsonObject.put("parm", firstspec);
                         jsonObject.put("flag", true);
-                        colormap.add(jsonObject);
+                        specmap.add(jsonObject);
                     }else{
                         JSONObject jsonObject = new JSONObject();
                         jsonObject.put("parm", firstspec);
                         jsonObject.put("flag", false);
-                        colormap.add(jsonObject);
+                        specmap.add(jsonObject);
                     }
                 }
             }
@@ -866,16 +866,16 @@ public class itemgroup extends Controller {
                     }
                 }
                 if (!isexistParm) {
-                    if(list.get(0).equals("color")){
+                    if(list.get(0).equals("material")){
                         JSONObject jsonObject = new JSONObject();
                         jsonObject.put("parm", firstmaterial);
                         jsonObject.put("flag", true);
-                        colormap.add(jsonObject);
+                        materialmap.add(jsonObject);
                     }else{
                         JSONObject jsonObject = new JSONObject();
                         jsonObject.put("parm", firstmaterial);
                         jsonObject.put("flag", false);
-                        colormap.add(jsonObject);
+                        materialmap.add(jsonObject);
                     }
                 }
             }
@@ -889,16 +889,16 @@ public class itemgroup extends Controller {
                     }
                 }
                 if (!isexistParm) {
-                    if(list.get(0).equals("color")){
+                    if(list.get(0).equals("cheek")){
                         JSONObject jsonObject = new JSONObject();
                         jsonObject.put("parm", firstcheek);
                         jsonObject.put("flag", true);
-                        colormap.add(jsonObject);
+                        cheekmap.add(jsonObject);
                     }else{
                         JSONObject jsonObject = new JSONObject();
                         jsonObject.put("parm", firstcheek);
                         jsonObject.put("flag", false);
-                        colormap.add(jsonObject);
+                        cheekmap.add(jsonObject);
                     }
                 }
             }