81,122
社区成员




StringBuffer sb = new StringBuffer();
sb.append(" select * from users where 1=1 );
if (id != null && !"".equals(id)) {
sb.append(" and id='" + id + "' ");
}
if (username != null && !"".equals(username)) {
sb.append(" and username='" + username + "' ");
}
if (password != null && !"".equals(password)) {
sb.append(" and password='" + password + "' ");
}