class DatabaseSetController {

    @RequestMapping(value = "/groupCheck")
    public ConfigCkeckResult<ConfigCheckItem> groupCheck(@CurrentUser LoginUser user, @RequestParam("gourpId") Long gourpId) throws Exception {
        List<DatabaseSet> dbsets = databaseSetDao.getAllDatabaseSetByGroupId(gourpId);
        if (CollectionUtils.isNotEmpty(dbsets)) {
            List<ConfigDataResponse> list = databaseSetService.getAllCheckData(user, gourpId, dbsets.get(0));
            return ConfigCheckBase.checkData(list);
        }
        return ConfigCkeckResult.fail();
    }

}