提交 ed8856ae 编写于 作者: M MaxKey

fix

上级 77a5781f
......@@ -107,7 +107,7 @@ public class SqlProviderQuery <T extends JpaBaseEntity>{
//获取缓存数据
PageResultsSqlCache pageResultsSqlCache=JpaBaseService.pageResultsBoundSqlCache.get(pagination.getPageResultSelectUUID());
//多个空格 tab 替换成1个空格
String selectSql=pageResultsSqlCache.getSql().replaceAll("\t", " ").replaceAll(" +"," ");
String selectSql=pageResultsSqlCache.getSql().replaceAll("\r\n+", " \n").replaceAll("\n+", " \n").replaceAll("\t", " ").replaceAll(" +"," ");
BoundSql boundSql=(BoundSql)pageResultsSqlCache.getBoundSql();
_logger.trace("Count original SQL :\n" + selectSql);
......
......@@ -28,7 +28,8 @@
STDMAJOR ,
STDCLASS
FROM STUDENTS
FROM
STUDENTS
<include refid="sql_condition"/>
<!-- group by STDMAJOR -->
order by STDAGE
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册