class ProjectService {

    public ServiceResult deleteCheck(Long projectId) throws SQLException {
        if (deleteCheckDao.isProjectIdInProjectDbsetRelatio(projectId)) {
            return ServiceResult.fail("请先删除与逻辑库的关联关系！");
        }
        if (deleteCheckDao.isProjectIdInTaskSQL(projectId)) {
            return ServiceResult.fail("请先删除与之相关查询实体！");
        }
        if (deleteCheckDao.isProjectIdInTaskTable(projectId)) {
            return ServiceResult.fail("请先删除与之相关表实体！");
        }

        return ServiceResult.success();
    }

}