Search in sources :

Example 1 with Goods

use of sqltoy.showcase.system.vo.Goods in project sagacity-sqltoy by chenrenfei.

the class LinkDaoTest method findESBySqlPage.

@Test
public void findESBySqlPage() throws Exception {
    GoodsParam goodsParam = new GoodsParam();
    goodsParam.setGoodsCateId("1515376757743370152561");
    List<String> goodsCateIds = new ArrayList<>();
    goodsCateIds.add("1515376757743370152561");
    PaginationModel paginationModel = new PaginationModel();
    goodsParam.setPage(paginationModel);
    goodsParam.setGoodsCateIds(goodsCateIds);
    goodsParam.setKeyword("资源");
    PaginationModel pageModel = new PaginationModel();
    PaginationModel pageGoods = staffInfoDao.findESPageBySql(pageModel, goodsParam);
    List<Goods> goodsResults = pageGoods.getRows();
    System.out.println(JSON.toJSONString(goodsResults));
}
Also used : PaginationModel(org.sagacity.sqltoy.model.PaginationModel) ArrayList(java.util.ArrayList) GoodsParam(sqltoy.showcase.system.vo.GoodsParam) Goods(sqltoy.showcase.system.vo.Goods) Test(org.junit.Test)

Aggregations

ArrayList (java.util.ArrayList)1 Test (org.junit.Test)1 PaginationModel (org.sagacity.sqltoy.model.PaginationModel)1 Goods (sqltoy.showcase.system.vo.Goods)1 GoodsParam (sqltoy.showcase.system.vo.GoodsParam)1