wuxw
2019-10-30 570c3e39020473efd8e03215e40925ab3d8d7051
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")));
            }