2017-11-28 09:43
@JFinal select t.* from T_XX t where 1=1 order by ?
我的本意是使order by 后面的筛选项动态化,find方法不会报错,但出来的结果不是正确的(因为变成了order by '筛选项',而不是 order by 筛选项),paginate方法会报错。SqlPara sqlPara = Db.getSqlPara("xxx", Kv.by("cond", cond.set("order", "update_time")));