Criteria cri = Cnd.cri();
cri.where().and(new Static("1=1");
cri.where().andEquals("t.lrr","杨春有");
cri.getOrderBy("t.lrsj");
执行sql
Sql sql=Dbutil.getSql("query");
/*query*/
select t.* from table t $condition and t.id='001'
4 回复
添加回复
请先登陆