|
@@ -144,14 +144,14 @@ public class homepage extends Controller {
|
|
|
* @return
|
|
|
*/
|
|
|
public String prodList() {
|
|
|
- SQLFactory prodlistSql = new SQLFactory(this, "ÓÅÖÊÉÌÆ·");
|
|
|
+ SQLFactory prodlistSql = new SQLFactory(this, "ÓÅÖÊÉÌÆ·",pageSize,pageNumber,"t1.tagents_productid");
|
|
|
prodlistSql.addParameter("siteid", siteid);
|
|
|
Rows rows = prodlistSql.runSqlQuery();
|
|
|
RowsMap map = getAttachmentUrl("tagents_product", rows.toArrayList("tagents_productid"));
|
|
|
for (Row row : rows) {
|
|
|
row.put("attinfos", map.get(row.getString("tagents_productid")));
|
|
|
}
|
|
|
- return getSucReturnObject().setData(rows).saveToDataPool(10).toString();
|
|
|
+ return getSucReturnObject().setDataByPaging(rows).saveToDataPool(10).toString();
|
|
|
}
|
|
|
|
|
|
}
|