标签:
前端
function goto(){ getPage(${usersession.hasPrivilegeByName(‘Business Trip‘)},"",""); }
后端
if("".equals(orderItem)){ return getSession().createQuery("FROM Trip t WHERE t.name LIKE ‘%" +keyword+ "%‘ OR t.part LIKE ‘%" +keyword+ "%‘ OR t.destination LIKE ‘%" +keyword+ "%‘ ") .list(); } else { return getSession().createQuery("FROM Trip t WHERE t.name LIKE ‘%" +keyword+ "%‘ OR t.part LIKE ‘%" +keyword+ "%‘ OR t.destination LIKE ‘%" +keyword+ "%‘ ORDER BY "+orderItem+" "+orderKey) .list(); }
标签:
原文地址:http://www.cnblogs.com/wujixing/p/5879136.html