class ProjectDao extends BaseDao {

    public List<Project> getProjectsNoGroup(Long appGroupId) throws SQLException {
        String cond = StringUtils.EMPTY;
        if (null != appGroupId && appGroupId > 0) {
            cond = " or app_group_id = " + appGroupId;
        }
        String sql = "SELECT id, app_id, name, namespace,dal_group_id,dal_config_name,update_user_no,update_time FROM project where app_group_id = 0" + cond;
        return this.queryBySql(sql, Project.class);
    }

}