浏览代码

商品组查询逻辑变更

hu 9 月之前
父节点
当前提交
1c460c0b82
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/custom/restcontroller/sale/itemgroup/itemgroup.java

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

@@ -1008,9 +1008,9 @@ public class itemgroup extends Controller {
             }
 
             if(customschemeItems1RowsMap.containsKey("color")){
+                where=" 1=1 ";
                 for (String value : listParmNotBlank) {
                     if(!value.equals("color")){
-                        where=" 1=1 ";
                         where = where + " and " + value + "='" + content.getString(value) + "' ";
                     }
                 }
@@ -1059,9 +1059,9 @@ public class itemgroup extends Controller {
                 }
             }
             if(customschemeItems1RowsMap.containsKey("spec")){
+                where=" 1=1 ";
                 for (String value : listParmNotBlank) {
                     if(!value.equals("spec")){
-                        where=" 1=1 ";
                         where = where + " and " + value + "='" + content.getString(value) + "' ";
                     }
                 }
@@ -1110,9 +1110,9 @@ public class itemgroup extends Controller {
                 }
             }
             if(customschemeItems1RowsMap.containsKey("material")){
+                where=" 1=1 ";
                 for (String value : listParmNotBlank) {
                     if(!value.equals("material")){
-                        where=" 1=1 ";
                         where = where + " and " + value + "='" + content.getString(value) + "' ";
                     }
                 }
@@ -1161,9 +1161,9 @@ public class itemgroup extends Controller {
                 }
             }
             if(customschemeItems1RowsMap.containsKey("cheek")){
+                where=" 1=1 ";
                 for (String value : listParmNotBlank) {
                     if(!value.equals("cheek")){
-                        where=" 1=1 ";
                         where = where + " and " + value + "='" + content.getString(value) + "' ";
                     }
                 }