时间:2021-07-01 10:21:17 帮助过:42人阅读
public void twxxList() {
String twbh = getPara("data");
if(twbh!=null &&!"".contentEquals(twbh)) {
twbh="and twbh=‘"+twbh+"‘";
}else {
twbh="";
}
List<Record> record1 = Db.find("select * from chengyang_scbjt where 1=1 "+twbh+" ");
//List<Record> record1 = Db.find("select * from chengyang_scbjt ");
renderJson(record1);
}
1
往sql语句中拼接数据
标签:cheng sele class HERE record sql and equals select