fix(测试计划): 测试计划移动到计划组下同步删除其定时任务
【【测试计划】计划有定时任务-批量移动到计划组-计划仍展示定时任务】https://www.tapd.cn/55049933/bugtrace/bugs/view?bug_id=1155049933001043212
This commit is contained in:
parent
a2669bcc6e
commit
807b77e08f
|
@ -709,6 +709,8 @@ public class TestPlanService extends TestPlanBaseUtilsService {
|
|||
testPlanGroupService.validateGroupCapacity(request.getTargetId(), moveTestPlanList.size());
|
||||
}
|
||||
moveCount = testPlanBatchOperationService.batchMoveGroup(moveTestPlanList, request.getTargetId(), userId);
|
||||
//移动到计划组后要删除定时任务
|
||||
moveTestPlanList.forEach(item -> this.deleteScheduleConfig(item.getId()));
|
||||
} else {
|
||||
moveCount = testPlanBatchOperationService.batchMoveModule(moveTestPlanList, request.getTargetId(), userId);
|
||||
}
|
||||
|
@ -846,7 +848,7 @@ public class TestPlanService extends TestPlanBaseUtilsService {
|
|||
public void deleteScheduleConfig(String testPlanId) {
|
||||
scheduleService.deleteByResourceId(testPlanId, TestPlanScheduleJob.getJobKey(testPlanId), TestPlanScheduleJob.getTriggerKey(testPlanId));
|
||||
|
||||
//判断有没有测试计划组
|
||||
//判断是不是测试计划组
|
||||
TestPlanExample testPlanExample = new TestPlanExample();
|
||||
testPlanExample.createCriteria().andGroupIdEqualTo(testPlanId);
|
||||
testPlanMapper.selectByExample(testPlanExample).forEach(
|
||||
|
|
Loading…
Reference in New Issue