fix(测试计划): 修复测试计划无法从测试计划组内移除的问题

This commit is contained in:
Jianguo-Genius 2024-07-17 17:04:49 +08:00 committed by 刘瑞斌
parent 90fbf38e41
commit 03b13de4dc
1 changed files with 2 additions and 2 deletions

View File

@ -385,11 +385,11 @@ public class TestPlanService extends TestPlanBaseUtilsService {
updateTestPlan.setModuleId(testPlanGroup.getModuleId()); updateTestPlan.setModuleId(testPlanGroup.getModuleId());
} }
} else { } else {
request.setGroupId(TestPlanConstants.TEST_PLAN_DEFAULT_GROUP_ID); updateTestPlan.setGroupId(TestPlanConstants.TEST_PLAN_DEFAULT_GROUP_ID);
if (!StringUtils.equalsIgnoreCase(originalTestPlan.getGroupId(), request.getGroupId())) { if (!StringUtils.equalsIgnoreCase(originalTestPlan.getGroupId(), request.getGroupId())) {
//移出了测试计划组 //移出了测试计划组
this.deleteScheduleConfig(request.getId()); this.deleteScheduleConfig(request.getId());
updateTestPlan.setPos(testPlanGroupService.getNextOrder(request.getGroupId())); updateTestPlan.setPos(testPlanGroupService.getNextOrder(updateTestPlan.getGroupId()));
} }
} }
//判断有没有模块的变化 //判断有没有模块的变化