Commit 5ed38c24 authored by yanzg's avatar yanzg

修改MQ请求尸体,防止出错

parent 07605d8a
......@@ -99,7 +99,7 @@ public class DaoConst {
* 加载SQL语句模板
*/
public static final String SQL_LOAD = "{SELECT_OUTER_BEGIN}SELECT {FIELD} FROM {TABLE} AS a {INNER} WHERE 1=1" +
"{WHERE}{GROUP}{HAVING}{ORDER}{LIMIT}{SELECT_OUTER_END}{LIMIT_END}";
"{WHERE}{GROUP}{HAVING}{ORDER}{LIMIT}{SELECT_OUTER_END}{WHERE_OUTER}{GROUP_OUTER}{HAVING_OUTER}{ORDER_OUTER}{LIMIT_OUTER}";
/**
* 表名代码片段
*/
......@@ -131,7 +131,7 @@ public class DaoConst {
/**
* WHERE条件代码片段
*/
public static final String CODE_LIMIT_END = "{LIMIT_END}";
public static final String CODE_LIMIT_OUTER = "{LIMIT_OUTER}";
/**
* 更新字段模板
*/
......
......@@ -92,8 +92,8 @@ public class SqlData {
@Override
public void addPos(StringBuilder sb, String group, String fieldFull, String field, String command) {
if (StringHelper.compare(group, DaoConst.CODE_LIMIT)) {
sb.append(DaoConst.CODE_LIMIT_END);
} else if (StringHelper.compare(group, DaoConst.CODE_LIMIT_END)) {
sb.append(DaoConst.CODE_LIMIT_OUTER);
} else if (StringHelper.compare(group, DaoConst.CODE_LIMIT_OUTER)) {
sb.append(DaoConst.CODE_LIMIT);
} else {
sb.append(group);
......
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