class ProjectService {

    public boolean isNotExistByAppId(Project project) throws SQLException {
        Long n = projectDao.getCountByAppId(project.getApp_id());
        Long i = projectDao.getCountByIdAndAppId(project.getId(), project.getApp_id());
        if (n == 0 || (n == 1 && i == 1)) {
            return true;
        }
        return false;
    }

}