code: private static String sqlFilter(String sql) {
          sql = sql.replace(", WHERE", " WHERE").replace("AND  OR", "OR");
          if (sql.endsWith(Const.SPACE + Const.SQL_AND + Const.SPACE)) {
              sql = sql.substring(0, sql.length() - 5);
          }
          if (sql.endsWith(", ")) {
              sql = sql.substring(0, sql.length() - 2);
          }
          return sql;
      }
docs: SQL过滤
  
  @param sql sql语句
  @return 返回过滤后的sql