Jelajahi Sumber

门户热门商品调整分页查询

沈静伟 3 tahun lalu
induk
melakukan
466d060bf2

+ 2 - 2
src/dsb/com/cnd3b/restcontroller/publicmethod/homepage/homepage.java

@@ -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();
     }
 
 }