From 0a05e7a30f3ae44b0b6c4b0191a1f8a3178965ef Mon Sep 17 00:00:00 2001 From: WangXu10 Date: Wed, 30 Oct 2024 11:52:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=BB=E5=8A=A1=E4=B8=AD=E5=BF=83):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92&?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E7=BB=84=E5=90=8E=E5=8F=B0=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E8=AE=B0=E5=BD=95=E9=94=99=E8=AF=AF=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1048351 --user=王旭 【系统设置】系统-任务中心-系统后台任务-测试计划开启定时任务,在系统后台任务处类型显示的计划组 https://www.tapd.cn/55049933/s/1601907 --- .../io/metersphere/plan/service/TestPlanScheduleService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanScheduleService.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanScheduleService.java index 6f571cecb6..d480dcd88f 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanScheduleService.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanScheduleService.java @@ -40,7 +40,7 @@ public class TestPlanScheduleService { .name(testPlan.getName()) .enable(request.isEnable()) .cron(request.getCron()) - .resourceType(testPlan.getType() == TestPlanConstants.TEST_PLAN_TYPE_PLAN ? ScheduleResourceType.TEST_PLAN.name() : ScheduleResourceType.TEST_PLAN_GROUP.name()) + .resourceType(StringUtils.equalsIgnoreCase(testPlan.getType(), TestPlanConstants.TEST_PLAN_TYPE_PLAN) ? ScheduleResourceType.TEST_PLAN.name() : ScheduleResourceType.TEST_PLAN_GROUP.name()) .config(JSON.toJSONString(request.getRunConfig())) .build();