1- 在判断不为空时一下写法是错的
if (!(request.getParameter("nomarketregion").equals("")||request.getParameter("nomarketregion") == null)) {
cond += "&nomarketregion="+request.getParameter("nomarketregion");
}
应该把判断为空放在前面
if (!(request.getParameter("nomarketregion") == null||request.getParameter("nomarketregion").equals(""))) {
cond += "&nomarketregion="+request.getParameter("nomarketregion");
}
if (!(request.getParameter("nomarketregion").equals("")||request.getParameter("nomarketregion") == null)) {
cond += "&nomarketregion="+request.getParameter("nomarketregion");
}
应该把判断为空放在前面
if (!(request.getParameter("nomarketregion") == null||request.getParameter("nomarketregion").equals(""))) {
cond += "&nomarketregion="+request.getParameter("nomarketregion");
}