Pārlūkot izejas kodu

sql 处理加入 日志

wuxw 6 gadi atpakaļ
vecāks
revīzija
f7040c45fa

+ 1 - 0
java110-service/src/main/java/com/java110/service/smo/impl/QueryServiceSMOImpl.java

@@ -343,6 +343,7 @@ public class QueryServiceSMOImpl extends LoggerEngine implements IQueryServiceSM
 
 
         String[] oSqls = oldSql.split("</if>");
         String[] oSqls = oldSql.split("</if>");
         for (String oSql : oSqls) {
         for (String oSql : oSqls) {
+            logger.debug("处理if 节点,当前处理的oSql=" + oSql + "总的oSqls = " + oSqls);
             if (!oSql.startsWith("<if")) {
             if (!oSql.startsWith("<if")) {
                 newSql.append(oSql.substring(0, oSql.indexOf("<if")));
                 newSql.append(oSql.substring(0, oSql.indexOf("<if")));
             }
             }