前端
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(); }
时间: 2024-10-14 17:03:45