select
from AUS_USERS
where 1 = 1
and AUS_CARDCODE LIKE CONCAt(CONCAt('%','#{ausCardcode}','%'))
and AUS_CARDCODE LIKE CONCAt(CONCAt('%','#{ausUsername}','%') )
接口:
List allUser(Map map);
Controller里面:
@RequestMapping("userInfo")
public String userInfo(HttpServletRequest request,
HttpServletResponse response,Map map) throws IOException {
map.get("ausCardcode");
map.get("ausUsername");
List
request.setAttribute("AusUser", ausUser);
return "system/userInfo";
}
Jsp:
账号:
姓名:
为什么获取不到name="ausCardcode"和 name="ausUsername"这两个参数的值?