Просмотр исходного кода

返回bindingcategories字段不进行判断

hu 2 лет назад
Родитель
Сommit
76fe04f315

+ 9 - 9
src/custom/restcontroller/webmanage/sale/accountclass/accountclass.java

@@ -171,15 +171,15 @@ public class accountclass extends Controller {
         factory.addParameter_SQL("where", where);
         Rows rows = dbConnect.runSqlQuery(factory.getSQL());
 
-        for (Row row:rows) {
-            JSONArray bindingcategories= row.getJSONArray("bindingcategories");
-            if(bindingcategories.size()>0){
-                Rows itemclassRows = dbConnect.runSqlQuery("select * from plm_itemclass where siteid='"+siteid+"' and classtype='营销' and itemclassid in"+bindingcategories.toJSONString().replace("[", "(").replace("]", ")"));
-                row.put("bindingcategories",itemclassRows.toJsonArray("itemclassname"));
-            }else{
-                row.put("bindingcategories",new JSONArray());
-            }
-        }
+//        for (Row row:rows) {
+//            JSONArray bindingcategories= row.getJSONArray("bindingcategories");
+//            if(bindingcategories.size()>0){
+//                Rows itemclassRows = dbConnect.runSqlQuery("select * from plm_itemclass where siteid='"+siteid+"' and classtype='营销' and itemclassid in"+bindingcategories.toJSONString().replace("[", "(").replace("]", ")"));
+//                row.put("bindingcategories",itemclassRows.toJsonArray("itemclassname"));
+//            }else{
+//                row.put("bindingcategories",new JSONArray());
+//            }
+//        }
         return getSucReturnObject().setData(rows).toString();
     }