Lius
昨天 f73f8cb6753f8d8ab2c689b4640cd2688e6f6f62
lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/service/impl/LogTableServiceImpl.java
@@ -107,8 +107,6 @@
            // 文件路径
            String locFilePath = localFilePath + TYPE + today + String.format("%06d", sequenceNumber) + ".xml";
//            FileWriter writer = new FileWriter(locFilePath);
//            writer.writeLines(sqlList);
            String listSql = String.join("\n", sqlList);
            try {
                FileUtils.fileWriterSql(locFilePath, listSql);
@@ -226,7 +224,6 @@
                        sqlExecutor.execute(sql);
                    } catch (Exception e) {
                        failedSqlList.add(sql);
//                        throw new JeecgBootException("执行sql失败!");
                    }
                }
                if (!failedSqlList.isEmpty()) {
@@ -236,7 +233,6 @@
                        throw new JeecgBootException("数据写入文件失败!");
                    }
                }
//                String sqlList = fileReader.readString();
                if (Integer.parseInt(file.getName().substring(file.getName().length() - 10, file.getName().length() - 4)) == 1) {
                    // 删除历史文件