class AppGroupService {

    public ListResult<AppGroupView> findProjectGroupPageList(Paging<AppGroup> paging) throws SQLException {
        Long count = appGroupDao.getAppGroupTotalCount(paging);
        return PagerUtil.find(count, paging.getPage(), paging.getPageSize(), () -> {
            List<AppGroupView> list = appGroupDao.findAppGroupPageList(paging);
            if (CollectionUtils.isEmpty(list)) {
                return Collections.emptyList();
            }
            return list;
        });
    }

}