会吃掉select语句
Db.use(getDefaultDatasource()).paginate(currentPage, pageSize, selectClause, sqlExceptSelect, params.toArray());
构造的过程中,select 部分被丢弃了
打印语句如下,报错:
Sql: select count(*) from main_role where 1=1
Sql: from main_role where 1=1 limit 10 offset 0
com.jfinal.plugin.activerecord.ActiveRecordException: org.postgresql.util.PSQLException: ERROR: syntax error at or near "from"
位置:2
第二个Sql的select不见了!
项目:JFinal
https://www.jfinal.com/doc/5-6