Commit 363c9375 by 吴佳

调整sql截取

parent 010bb492
...@@ -174,7 +174,7 @@ public class MybatisArgumentAdapter { ...@@ -174,7 +174,7 @@ public class MybatisArgumentAdapter {
StringBuffer selectColumn = new StringBuffer(); StringBuffer selectColumn = new StringBuffer();
String tmpSql = sql.toLowerCase(); String tmpSql = sql.toLowerCase();
if(tmpSql.indexOf("where")!=-1 ) { if(tmpSql.indexOf("where")!=-1 ) {
tmpSql = tmpSql.substring(0, tmpSql.lastIndexOf("where") - 1); tmpSql = tmpSql.substring(0, tmpSql.indexOf("where") - 1);
} }
//获取SQL中别名和表明的对应关系 //获取SQL中别名和表明的对应关系
Map<String, String> tableNameMap = parseTableNameAndAlias(tmpSql); Map<String, String> tableNameMap = parseTableNameAndAlias(tmpSql);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment