returnrawQueryGetDtoList("select * from m_group where group_relation_id in (select group_relation_id from r_content_group where content_id = "+contentId+") order by group_id",null,GroupDto.class);
returnrawQueryGetDtoList("select * from m_group where group_relation_id in (select group_relation_id from r_content_group where content_id = "+contentId+") order by group_id",null,GroupDto.class);
}
}
publicList<String>getMyGroupPathList(){
StringBuffersql=newStringBuffer();
sql.append(" SELECT ");
sql.append(" CASE WHEN (grandparentgroup.group_name IS NOT NULL) THEN grandparentgroup.group_name || ' / ' || parentgroup.group_name || ' / ' || mygroup.group_name ");
sql.append(" WHEN (parentgroup.group_name IS NOT NULL) THEN parentgroup.group_name || ' / ' || mygroup.group_name ");
sql.append(" ELSE mygroup.group_name ");
sql.append(" END AS group_path_list ");
sql.append(" FROM m_group mygroup ");
sql.append(" LEFT JOIN m_group parentgroup on mygroup.parent_group_id = parentgroup.group_id ");
sql.append(" LEFT JOIN m_group grandparentgroup on parentgroup.parent_group_id = grandparentgroup.group_id ");