java110-service/src/main/java/com/java110/service/smo/impl/QueryServiceSMOImpl.java
@@ -344,6 +344,9 @@ String[] oSqls = oldSql.split("</if>"); for (String oSql : oSqls) { logger.debug("处理if 节点,当前处理的oSql=" + oSql + "总的oSqls = " + oSqls); if(StringUtil.isNullOrNone(oSql) || !oSql.contains("<if")){ continue; } if (!oSql.startsWith("<if")) { newSql.append(oSql.substring(0, oSql.indexOf("<if"))); }