|
@@ -809,7 +809,7 @@ public class itemgroup extends Controller {
|
|
|
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ List<String> list = new ArrayList<>(listParmNotBlank);
|
|
|
for (String firstcolor : firstcolorList) {
|
|
|
boolean isexistParm = false;
|
|
|
for (Object object : colormap) {
|
|
@@ -820,10 +820,17 @@ public class itemgroup extends Controller {
|
|
|
}
|
|
|
}
|
|
|
if (!isexistParm) {
|
|
|
- JSONObject jsonObject = new JSONObject();
|
|
|
- jsonObject.put("parm", firstcolor);
|
|
|
- jsonObject.put("flag", true);
|
|
|
- colormap.add(jsonObject);
|
|
|
+ if(list.get(0).equals("color")){
|
|
|
+ JSONObject jsonObject = new JSONObject();
|
|
|
+ jsonObject.put("parm", firstcolor);
|
|
|
+ jsonObject.put("flag", true);
|
|
|
+ colormap.add(jsonObject);
|
|
|
+ }else{
|
|
|
+ JSONObject jsonObject = new JSONObject();
|
|
|
+ jsonObject.put("parm", firstcolor);
|
|
|
+ jsonObject.put("flag", false);
|
|
|
+ colormap.add(jsonObject);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
for (String firstspec : firstspecList) {
|
|
@@ -836,10 +843,17 @@ public class itemgroup extends Controller {
|
|
|
}
|
|
|
}
|
|
|
if (!isexistParm) {
|
|
|
- JSONObject jsonObject = new JSONObject();
|
|
|
- jsonObject.put("parm", firstspec);
|
|
|
- jsonObject.put("flag", true);
|
|
|
- specmap.add(jsonObject);
|
|
|
+ if(list.get(0).equals("color")){
|
|
|
+ JSONObject jsonObject = new JSONObject();
|
|
|
+ jsonObject.put("parm", firstspec);
|
|
|
+ jsonObject.put("flag", true);
|
|
|
+ colormap.add(jsonObject);
|
|
|
+ }else{
|
|
|
+ JSONObject jsonObject = new JSONObject();
|
|
|
+ jsonObject.put("parm", firstspec);
|
|
|
+ jsonObject.put("flag", false);
|
|
|
+ colormap.add(jsonObject);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
for (String firstmaterial : firstmaterialList) {
|
|
@@ -852,10 +866,17 @@ public class itemgroup extends Controller {
|
|
|
}
|
|
|
}
|
|
|
if (!isexistParm) {
|
|
|
- JSONObject jsonObject = new JSONObject();
|
|
|
- jsonObject.put("parm", firstmaterial);
|
|
|
- jsonObject.put("flag", true);
|
|
|
- materialmap.add(jsonObject);
|
|
|
+ if(list.get(0).equals("color")){
|
|
|
+ JSONObject jsonObject = new JSONObject();
|
|
|
+ jsonObject.put("parm", firstmaterial);
|
|
|
+ jsonObject.put("flag", true);
|
|
|
+ colormap.add(jsonObject);
|
|
|
+ }else{
|
|
|
+ JSONObject jsonObject = new JSONObject();
|
|
|
+ jsonObject.put("parm", firstmaterial);
|
|
|
+ jsonObject.put("flag", false);
|
|
|
+ colormap.add(jsonObject);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
for (String firstcheek : firstcheekList) {
|
|
@@ -868,10 +889,17 @@ public class itemgroup extends Controller {
|
|
|
}
|
|
|
}
|
|
|
if (!isexistParm) {
|
|
|
- JSONObject jsonObject = new JSONObject();
|
|
|
- jsonObject.put("parm", firstcheek);
|
|
|
- jsonObject.put("flag", true);
|
|
|
- cheekmap.add(jsonObject);
|
|
|
+ if(list.get(0).equals("color")){
|
|
|
+ JSONObject jsonObject = new JSONObject();
|
|
|
+ jsonObject.put("parm", firstcheek);
|
|
|
+ jsonObject.put("flag", true);
|
|
|
+ colormap.add(jsonObject);
|
|
|
+ }else{
|
|
|
+ JSONObject jsonObject = new JSONObject();
|
|
|
+ jsonObject.put("parm", firstcheek);
|
|
|
+ jsonObject.put("flag", false);
|
|
|
+ colormap.add(jsonObject);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}else {
|