@Test public void findSelectEntityPageListTest() throws SQLException { Paging<TaskSql> paging = new Paging<>(); paging.setData(new TaskSql()); Assert.assertTrue(selectEntityService.findSelectEntityPageList(paging).getList().size() > 0); }
public ListResult<TaskSqlView> findSelectEntityPageList(Paging<TaskSql> paging) throws SQLException { Long count = selectEntityDao.getSelectEntityTotalCount(paging); return PagerUtil.find(count, paging.getPage(), paging.getPageSize(), () -> { List<TaskSqlView> list = selectEntityDao.findSelectEntityPageList(paging); if (CollectionUtils.isEmpty(list)) { return Collections.emptyList(); } return list; }); }
SelectEntityService { public ListResult<TaskSqlView> findSelectEntityPageList(Paging<TaskSql> paging) throws SQLException { Long count = selectEntityDao.getSelectEntityTotalCount(paging); return PagerUtil.find(count, paging.getPage(), paging.getPageSize(), () -> { List<TaskSqlView> list = selectEntityDao.findSelectEntityPageList(paging); if (CollectionUtils.isEmpty(list)) { return Collections.emptyList(); } return list; }); } }
SelectEntityService { public ListResult<TaskSqlView> findSelectEntityPageList(Paging<TaskSql> paging) throws SQLException { Long count = selectEntityDao.getSelectEntityTotalCount(paging); return PagerUtil.find(count, paging.getPage(), paging.getPageSize(), () -> { List<TaskSqlView> list = selectEntityDao.findSelectEntityPageList(paging); if (CollectionUtils.isEmpty(list)) { return Collections.emptyList(); } return list; }); }  }
SelectEntityService { public ListResult<TaskSqlView> findSelectEntityPageList(Paging<TaskSql> paging) throws SQLException { Long count = selectEntityDao.getSelectEntityTotalCount(paging); return PagerUtil.find(count, paging.getPage(), paging.getPageSize(), () -> { List<TaskSqlView> list = selectEntityDao.findSelectEntityPageList(paging); if (CollectionUtils.isEmpty(list)) { return Collections.emptyList(); } return list; }); }  ValidatorChain validatePermision(LoginUser user, TaskSql taskSql, Errors errors); ListResult<TaskSqlView> findSelectEntityPageList(Paging<TaskSql> paging); Long insertTask(TaskSql task, LoginUser user); }
SelectEntityService { public ListResult<TaskSqlView> findSelectEntityPageList(Paging<TaskSql> paging) throws SQLException { Long count = selectEntityDao.getSelectEntityTotalCount(paging); return PagerUtil.find(count, paging.getPage(), paging.getPageSize(), () -> { List<TaskSqlView> list = selectEntityDao.findSelectEntityPageList(paging); if (CollectionUtils.isEmpty(list)) { return Collections.emptyList(); } return list; }); }  ValidatorChain validatePermision(LoginUser user, TaskSql taskSql, Errors errors); ListResult<TaskSqlView> findSelectEntityPageList(Paging<TaskSql> paging); Long insertTask(TaskSql task, LoginUser user);  }