class DatabaseService {

    public ListResult<DataBaseView> findDbPageList(Paging<DataBaseInfo> paging) throws SQLException {
        Long count = dataBaseDao.getTotalCount(paging);
        return PagerUtil.find(count, paging.getPage(), paging.getPageSize(), () -> {
            List<DataBaseView> list = dataBaseDao.findDbPageList(paging);
            for (DataBaseView dataBaseView : list) {
                dataBaseView.setDb_password(DasEnv.encdecConfiguration.decrypt(dataBaseView.getDb_password()));
            }
            if (CollectionUtils.isEmpty(list)) {
                return Collections.emptyList();
            }
            return list;
        });
    }

}