2017-02-22 15:27
2016-09-21 09:58
@JFinal DbPro类里面的doPaginate方法,会拼接"select count(*)"和参数sqlExceptSelect,sqlExceptSelect参数就是"from (select a,row_number() over(order by b) c from table) where c=1 order by a"
2016-09-20 16:50
发现还是得替换order by,不然下面这种情况的sql会报错。select count(*) from (select a,row_number() over(order by b) c from table) order by a临时改成字符串trim完,在正则上加个(?=$)
2016-09-19 11:33
@JFinal 感谢!按照波总这样改了,2.3可以直接替换2.2吗,我正在全公司推广
2016-09-18 15:25