@Test public void findServerGroupPageListTest() throws SQLException { Paging<ServerGroup> paging = new Paging<>(); paging.setData(new ServerGroup()); Assert.assertTrue(serverGroupService.findServerGroupPageList(paging).getList().size() > 0); }
public ListResult<ServerGroupView> findServerGroupPageList(Paging<ServerGroup> paging) throws SQLException { Long count = serverGroupDaoOld.getServerGroupTotalCount(paging); return PagerUtil.find(count, paging.getPage(), paging.getPageSize(), () -> { List<ServerGroupView> list = serverGroupDaoOld.findServerGroupPageList(paging); if (CollectionUtils.isEmpty(list)) { return Collections.emptyList(); } return list; }); }
ServerGroupService { public ListResult<ServerGroupView> findServerGroupPageList(Paging<ServerGroup> paging) throws SQLException { Long count = serverGroupDaoOld.getServerGroupTotalCount(paging); return PagerUtil.find(count, paging.getPage(), paging.getPageSize(), () -> { List<ServerGroupView> list = serverGroupDaoOld.findServerGroupPageList(paging); if (CollectionUtils.isEmpty(list)) { return Collections.emptyList(); } return list; }); } }
ServerGroupService { public ListResult<ServerGroupView> findServerGroupPageList(Paging<ServerGroup> paging) throws SQLException { Long count = serverGroupDaoOld.getServerGroupTotalCount(paging); return PagerUtil.find(count, paging.getPage(), paging.getPageSize(), () -> { List<ServerGroupView> list = serverGroupDaoOld.findServerGroupPageList(paging); if (CollectionUtils.isEmpty(list)) { return Collections.emptyList(); } return list; }); }  }
ServerGroupService { public ListResult<ServerGroupView> findServerGroupPageList(Paging<ServerGroup> paging) throws SQLException { Long count = serverGroupDaoOld.getServerGroupTotalCount(paging); return PagerUtil.find(count, paging.getPage(), paging.getPageSize(), () -> { List<ServerGroupView> list = serverGroupDaoOld.findServerGroupPageList(paging); if (CollectionUtils.isEmpty(list)) { return Collections.emptyList(); } return list; }); }  ValidatorChain validatePermision(LoginUser user, Errors errors); ListResult<ServerGroupView> findServerGroupPageList(Paging<ServerGroup> paging); ServiceResult deleteCheck(Long dbsetId); ServiceResult<String> deleteServerGroup(ServerGroup serverGroup); boolean isNotExistByName(ServerGroup serverGroup); ServiceResult<String> addDataCenter(LoginUser user, ServerGroup serverGroup); ServiceResult<String> updateDataCenter(LoginUser user, ServerGroup serverGroup); ServiceResult<String> deleteDataCenter(LoginUser user, ServerGroup serverGroup); ServiceResult<String> syncDataCenter(LoginUser user, ServerGroup serverGroup); List<ConfigDataResponse> getCheckData(LoginUser user, ServerGroup serverGroup); }
ServerGroupService { public ListResult<ServerGroupView> findServerGroupPageList(Paging<ServerGroup> paging) throws SQLException { Long count = serverGroupDaoOld.getServerGroupTotalCount(paging); return PagerUtil.find(count, paging.getPage(), paging.getPageSize(), () -> { List<ServerGroupView> list = serverGroupDaoOld.findServerGroupPageList(paging); if (CollectionUtils.isEmpty(list)) { return Collections.emptyList(); } return list; }); }  ValidatorChain validatePermision(LoginUser user, Errors errors); ListResult<ServerGroupView> findServerGroupPageList(Paging<ServerGroup> paging); ServiceResult deleteCheck(Long dbsetId); ServiceResult<String> deleteServerGroup(ServerGroup serverGroup); boolean isNotExistByName(ServerGroup serverGroup); ServiceResult<String> addDataCenter(LoginUser user, ServerGroup serverGroup); ServiceResult<String> updateDataCenter(LoginUser user, ServerGroup serverGroup); ServiceResult<String> deleteDataCenter(LoginUser user, ServerGroup serverGroup); ServiceResult<String> syncDataCenter(LoginUser user, ServerGroup serverGroup); List<ConfigDataResponse> getCheckData(LoginUser user, ServerGroup serverGroup);  }