空字符串

前端

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();
		}

 

posted @ 2016-09-17 17:00  wujixing909  阅读(165)  评论(0编辑  收藏  举报