用老师那种不可以,改成这样
if(description !=null && !"".equals(description.trim())){ sql.append(" and DESCRIPTION like ?"); System.out.println(sql.toString()); paramlist.add("%"+description+"%"); }
if(description !=null && !"".equals(description.trim())){ sql.append(" and DESCRIPTION like ?"); System.out.println(sql.toString()); paramlist.add("%"+description+"%"); }
2018-09-24
举报