瀏覽代碼

商品组查询逻辑变更

hu 9 月之前
父節點
當前提交
f8b29ce078
共有 1 個文件被更改,包括 9 次插入9 次删除
  1. 9 9
      src/custom/restcontroller/sale/itemgroup/itemgroup.java

+ 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);
                     }
                 }
             }