class ProjectService {

    public ListResult<ProjectView> findProjectPageList(Paging<ProjectModel> paging) throws SQLException {
        Long count = projectDao.getProjectTotalCount(paging);
        return PagerUtil.find(count, paging.getPage(), paging.getPageSize(), () -> {
            List<ProjectView> list = projectDao.findProjectPageList(paging);
            if (CollectionUtils.isEmpty(list)) {
                return Collections.emptyList();
            }
            return list;
        });
    }

}