Commit 625b923d authored by yanzg's avatar yanzg

常规BUG的修改

parent ee125f12
...@@ -193,7 +193,7 @@ public class DaoConst { ...@@ -193,7 +193,7 @@ public class DaoConst {
/** /**
* 查询条件默认代码片段 * 查询条件默认代码片段
*/ */
public static final String[] LAST = new String[]{"{WHERE}", "{GROUP}", "{HAVING}", "{ORDER}", "{LIMIT}"}; public static final String[] LAST_AUTO_ADD = new String[]{"{WHERE}", "{GROUP}", "{HAVING}", "{ORDER}", "{LIMIT}"};
/** /**
* 普通字段 * 普通字段
......
...@@ -415,7 +415,7 @@ public abstract class BaseDaoSql { ...@@ -415,7 +415,7 @@ public abstract class BaseDaoSql {
// 将SQL语句进行代码片段追加 // 将SQL语句进行代码片段追加
StringBuilder sb = new StringBuilder(sqlData.getSql()); StringBuilder sb = new StringBuilder(sqlData.getSql());
for (String code : DaoConst.LAST) { for (String code : DaoConst.LAST_AUTO_ADD) {
if (sb.indexOf(code) == -1) { if (sb.indexOf(code) == -1) {
sb.append(code); sb.append(code);
} }
......
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