1 2 3 4 5 6 7 8 9 10 11
|
public List afficherComptes(String account,String charge,String type,String city,String secteur)
throws Exception {
String req = null;
Session session = HibernateUtil.currentSession();
Query q= session.createSQLQuery("select a.name,u.user_name,a.billing_address_city,a.phone_office,a.industry,c.description,MAX(c.date_start) from accounts a,users u,calls c where a.name like '%"+account+"%' and u.id='"+charge+"' and a.assigned_user_id=u.id and c.parent_id=a.id group by a.name order by a.name ASC");
listecomptes = q.list();
return listecomptes;
} |
Partager