fix(任务中心): 修复测试计划&计划组后台任务类型记录错误问题

--bug=1048351 --user=王旭 【系统设置】系统-任务中心-系统后台任务-测试计划开启定时任务,在系统后台任务处类型显示的计划组 https://www.tapd.cn/55049933/s/1601907
This commit is contained in:
WangXu10 2024-10-30 11:52:52 +08:00 committed by Craftsman
parent 37ac980085
commit 0a05e7a30f
1 changed files with 1 additions and 1 deletions

View File

@ -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();