class ServerConfigService {

    public ListResult<ServerConfig> findServerAppConfigPageList(Paging<ServerConfig> paging) throws SQLException {
        Long count = serverAppConfigDao.getServerAppConfigTotalCount(paging);
        return PagerUtil.find(count, paging.getPage(), paging.getPageSize(), () -> {
            List<ServerConfig> list = serverAppConfigDao.findServerAppConfigPageList(paging);
            if (CollectionUtils.isEmpty(list)) {
                return Collections.emptyList();
            }
            return list;
        });
    }

}