|
@@ -171,15 +171,15 @@ public class accountclass extends Controller {
|
|
|
factory.addParameter_SQL("where", where);
|
|
factory.addParameter_SQL("where", where);
|
|
|
Rows rows = dbConnect.runSqlQuery(factory.getSQL());
|
|
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();
|
|
return getSucReturnObject().setData(rows).toString();
|
|
|
}
|
|
}
|
|
|
|
|
|