|
@@ -65,23 +65,23 @@ public class Titemclass extends Controller {
|
|
|
row_3.put("itemcount", itemcountRows.get(0).getInteger("itemcount"));//商品数量
|
|
row_3.put("itemcount", itemcountRows.get(0).getInteger("itemcount"));//商品数量
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- if (!rows_3.isEmpty()) {
|
|
|
|
|
- row_2.put("subclass", rows_3);
|
|
|
|
|
- row_2.put("subclasscount", rows_3.size());
|
|
|
|
|
- row_2.put("pics", grouppicmap.get(row_2.getString("fitemclsnum")));
|
|
|
|
|
|
|
+ //if (!rows_3.isEmpty()) {
|
|
|
|
|
+ row_2.put("subclass", rows_3);
|
|
|
|
|
+ row_2.put("subclasscount", rows_3.size());
|
|
|
|
|
+ row_2.put("pics", grouppicmap.get(row_2.getString("fitemclsnum")));
|
|
|
|
|
|
|
|
- Rows itemcountRows = drpConnect.runSqlQuery("select count(0) as itemcount from titem_saleclsnum where flongsaleclsnum like'" + row_2.getString("fitemclsnum") + "/%' or flongsaleclsnum like'%/" + row_2.getString("fitemclsnum") + "/%' or flongsaleclsnum like'%/" + row_2.getString("fitemclsnum") + "'");
|
|
|
|
|
- row_2.put("itemcount", itemcountRows.get(0).getInteger("itemcount"));//商品数量
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ Rows itemcountRows = drpConnect.runSqlQuery("select count(0) as itemcount from titem_saleclsnum where flongsaleclsnum like'" + row_2.getString("fitemclsnum") + "/%' or flongsaleclsnum like'%/" + row_2.getString("fitemclsnum") + "/%' or flongsaleclsnum like'%/" + row_2.getString("fitemclsnum") + "'");
|
|
|
|
|
+ row_2.put("itemcount", itemcountRows.get(0).getInteger("itemcount"));//商品数量
|
|
|
|
|
+ // }
|
|
|
}
|
|
}
|
|
|
- if (!rows_2.isEmpty()) {
|
|
|
|
|
- row_1.put("subclass", rows_2);
|
|
|
|
|
- row_1.put("subclasscount", rows_2.size());
|
|
|
|
|
- row_1.put("pics", grouppicmap.get(row_1.getString("fitemclsnum")));
|
|
|
|
|
|
|
+ // if (!rows_2.isEmpty()) {
|
|
|
|
|
+ row_1.put("subclass", rows_2);
|
|
|
|
|
+ row_1.put("subclasscount", rows_2.size());
|
|
|
|
|
+ row_1.put("pics", grouppicmap.get(row_1.getString("fitemclsnum")));
|
|
|
|
|
|
|
|
- Rows itemcountRows = drpConnect.runSqlQuery("select count(0) as itemcount from titem_saleclsnum where flongsaleclsnum like'" + row_1.getString("fitemclsnum") + "/%' or flongsaleclsnum like'%/" + row_1.getString("fitemclsnum") + "/%' or flongsaleclsnum like'%/" + row_1.getString("fitemclsnum") + "'");
|
|
|
|
|
- row_1.put("itemcount", itemcountRows.get(0).getInteger("itemcount"));//商品数量
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ Rows itemcountRows = drpConnect.runSqlQuery("select count(0) as itemcount from titem_saleclsnum where flongsaleclsnum like'" + row_1.getString("fitemclsnum") + "/%' or flongsaleclsnum like'%/" + row_1.getString("fitemclsnum") + "/%' or flongsaleclsnum like'%/" + row_1.getString("fitemclsnum") + "'");
|
|
|
|
|
+ row_1.put("itemcount", itemcountRows.get(0).getInteger("itemcount"));//商品数量
|
|
|
|
|
+ // }
|
|
|
}
|
|
}
|
|
|
return getReturnObject_suc(rows_1, true).toString();
|
|
return getReturnObject_suc(rows_1, true).toString();
|
|
|
}
|
|
}
|