public Map<String, String> getAllFeedBack(Object[] obj){
Map<String, String> map = new HashMap<String, String>();
if(obj!=null && obj.length>0){
StringBuffer sql = new StringBuffer();
sql.append("select t.warning_form_id WARNINGFROMID,wm_concat(distinct t.sign_org_name) ORGNAMES from WARN_FEEDBACK t where nvl(t.status,'D') in ('N','D') and t.m_feedback_id is null and t.warning_form_id in (:ids) group by t.warning_form_id");
List<Map<String, String>> list = warnFeedbackDaoImpl.executeSQLQuery(sql.toString()).addScalar("WARNINGFROMID",Hibernate.STRING).addScalar("ORGNAMES",Hibernate.STRING).setParameterList("ids",obj).setResultTransformer(Transformers.ALIAS_TO_ENTITY_MAP).list();
if(list != null && list.size()>0){
for (int i = 0; i < list.size(); i++) {
Map<String, String> _map = list.get(i);
map.put(_map.get("WARNINGFROMID"), _map.get("ORGNAMES"));
}
}
}
return map;
}