From 68a8c68041c6e4ed98ebb71e1586259f97083ca1 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Thu, 18 Apr 2024 19:22:31 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1=E7=9A=84?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E4=BA=BA=E5=92=8C=E6=8A=A5=E5=91=8A=E7=9A=84?= =?UTF-8?q?=E6=93=8D=E4=BD=9C=E4=BA=BA=E4=B8=8D=E7=AC=A6=E5=90=88=E7=9A=84?= =?UTF-8?q?=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1039625 --user=王孝刚 【项目任务中心】定时任务列表操作人和执行完成后实时任务查看的操作人不一致 https://www.tapd.cn/55049933/s/1501505 --- .../java/io/metersphere/system/schedule/ScheduleService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/schedule/ScheduleService.java b/backend/services/system-setting/src/main/java/io/metersphere/system/schedule/ScheduleService.java index f181d863ba..ea960e6168 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/schedule/ScheduleService.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/schedule/ScheduleService.java @@ -16,7 +16,6 @@ import org.quartz.SchedulerException; import org.quartz.TriggerKey; import org.springframework.transaction.annotation.Transactional; -import java.util.ArrayList; import java.util.List; @Transactional(rollbackFor = Exception.class) @@ -140,7 +139,7 @@ public class ScheduleService { } - JobDataMap jobDataMap = scheduleManager.getDefaultJobDataMap(schedule, scheduleConfig.getCron(), operator); + JobDataMap jobDataMap = scheduleManager.getDefaultJobDataMap(schedule, scheduleConfig.getCron(), schedule.getCreateUser()); /* scheduleManager.modifyCronJobTime方法如同它的方法名所说,只能修改定时任务的触发时间。