|
@@ -249,7 +249,10 @@ public class QueryServiceSMOImpl extends LoggerEngine implements IQueryServiceSM
|
|
|
|
|
|
|
|
String currentSql = sqlObj.getString(dataQuery.getTemplateKey());
|
|
String currentSql = sqlObj.getString(dataQuery.getTemplateKey());
|
|
|
//处理 if 判断
|
|
//处理 if 判断
|
|
|
|
|
+ logger.debug("dealSqlIf开始处理sql中的<if>节点", currentSql);
|
|
|
currentSql = dealSqlIf(currentSql, params);
|
|
currentSql = dealSqlIf(currentSql, params);
|
|
|
|
|
+ logger.debug("dealSqlIf处理完成sql中的<if>节点", currentSql);
|
|
|
|
|
+
|
|
|
|
|
|
|
|
String[] sqls = currentSql.split("#");
|
|
String[] sqls = currentSql.split("#");
|
|
|
String currentSqlNew = "";
|
|
String currentSqlNew = "";
|
|
@@ -364,6 +367,8 @@ public class QueryServiceSMOImpl extends LoggerEngine implements IQueryServiceSM
|
|
|
newSql.append(root.getText());
|
|
newSql.append(root.getText());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|