lyh
8 小时以前 4d46a2bda9d7c7008d5542fcb1bdde4ffcb5fa09
lxzn-module-eam/src/main/java/org/jeecg/modules/eam/controller/EamMaintenanceStandardController.java
@@ -338,7 +338,7 @@
                    String message = importResult.getMessage();
                    if (message.contains("以下设备编码未找到:")) {
                        // 提取未找到的设备编码
                        String notFoundPart = message.substring(message.indexOf("以下设备编码未找到:") + 9);
                        String notFoundPart = message.substring(message.indexOf("以下设备编码未找到") + 9);
                        allNotFoundCodes.addAll(Arrays.asList(notFoundPart.split(", ")));
                        // 修改为部分成功消息
@@ -353,7 +353,7 @@
            // 如果有未找到的设备编码,添加到最终结果
            if (!allNotFoundCodes.isEmpty()) {
                String notFoundMsg = "以下设备编码未找到:" + String.join(", ", allNotFoundCodes);
                String notFoundMsg = "以下设备编码未找到" + String.join(", ", allNotFoundCodes);
                if (successCount > 0) {
                    // 部分成功
                    return Result.ok("部分导入成功,成功文件数:" + successCount +
@@ -406,7 +406,7 @@
                    String message = importResult.getMessage();
                    if (message.contains("以下设备编码未找到:")) {
                        // 提取未找到的设备编码
                        String notFoundPart = message.substring(message.indexOf("以下设备编码未找到:") + 9);
                        String notFoundPart = message.substring(message.indexOf("以下设备编码未找到") + 9);
                        allNotFoundCodes.addAll(Arrays.asList(notFoundPart.split(", ")));
                        // 修改为部分成功消息
@@ -421,7 +421,7 @@
            // 如果有未找到的设备编码,添加到最终结果
            if (!allNotFoundCodes.isEmpty()) {
                String notFoundMsg = "以下设备编码未找到:" + String.join(", ", allNotFoundCodes);
                String notFoundMsg = "以下设备编码未找到" + String.join(", ", allNotFoundCodes);
                if (successCount > 0) {
                    // 部分成功
                    return Result.ok("部分导入成功,成功文件数:" + successCount +
@@ -477,7 +477,7 @@
                String message = importResult.getMessage();
                if (message.contains("以下设备编码未找到:")) {
                    // 提取未找到的设备编码
                    String notFoundPart = message.substring(message.indexOf("以下设备编码未找到:") + 9);
                    String notFoundPart = message.substring(message.indexOf("以下设备编码未找到") + 9);
                    return Result.error("升版导入失败:" + notFoundPart);
                }
                return importResult;