From af2d5942652584c65579894c4a4a680bc37dad20 Mon Sep 17 00:00:00 2001
From: dongyukun <1208714201@qq.com>
Date: 星期六, 08 二月 2025 15:29:39 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 shasteel-biz/src/main/java/com/iailab/module/shasteel/job/task/RunScheduleOnaOptTask.java |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/shasteel-biz/src/main/java/com/iailab/module/shasteel/job/task/RunScheduleOnaOptTask.java b/shasteel-biz/src/main/java/com/iailab/module/shasteel/job/task/RunScheduleOnaOptTask.java
index da50f53..f33f03d 100644
--- a/shasteel-biz/src/main/java/com/iailab/module/shasteel/job/task/RunScheduleOnaOptTask.java
+++ b/shasteel-biz/src/main/java/com/iailab/module/shasteel/job/task/RunScheduleOnaOptTask.java
@@ -82,14 +82,13 @@
             }
             schemeMap.clear();
             Map<String, MdkScheduleRespDTO> resultMap = new HashMap<String, MdkScheduleRespDTO>();
-            schemeList.forEach(item -> {
-                schemeMap.put(item.getCode(), item);
-                StScheduleSchemeDTO scheme = schemeList.get(0);
+            schemeList.forEach(scheme -> {
+                schemeMap.put(scheme.getCode(), scheme);
                 MdkScheduleReqDTO dto = new MdkScheduleReqDTO();
                 dto.setScheduleTime(scheduleTime);
                 dto.setScheduleCode(scheme.getCode());
                 MdkScheduleRespDTO mdkScheduleRespDTO = mdkApi.doSchedule(dto);
-                resultMap.put(item.getCode(), mdkScheduleRespDTO);
+                resultMap.put(scheme.getCode(), mdkScheduleRespDTO);
             });
             if (CollectionUtils.isEmpty(resultMap)) {
                 logger.info("resultMap为空");

--
Gitblit v1.9.3