|
@@ -102,6 +102,14 @@ public class CheckStandardServiceImpl extends BaseServiceImpl<CheckStandardMappe
|
|
weekend.weekendCriteria().andEqualTo(CheckProjectStandardRelation::getStandardId, id);
|
|
weekend.weekendCriteria().andEqualTo(CheckProjectStandardRelation::getStandardId, id);
|
|
relationMapper.deleteByExample(weekend);
|
|
relationMapper.deleteByExample(weekend);
|
|
|
|
|
|
|
|
+ // 删除:未执行、执行中的任务:
|
|
|
|
+ List<Integer> statusList = new ArrayList<>();
|
|
|
|
+ statusList.add(CheckJobStatusEnum.NOT_EXECUTE.getValue());
|
|
|
|
+ statusList.add(CheckJobStatusEnum.EXECUTING.getValue());
|
|
|
|
+ Weekend<CheckJob> checkJobWeekend = new Weekend<>(CheckJob.class);
|
|
|
|
+ checkJobWeekend.weekendCriteria().andEqualTo(CheckJob::getStandardId, id).andIn(CheckJob::getStatus, statusList);
|
|
|
|
+ checkJobMapper.deleteByExample(checkJobWeekend);
|
|
|
|
+
|
|
// 删除标准任务:所有和这个标准一样的任务
|
|
// 删除标准任务:所有和这个标准一样的任务
|
|
/*Weekend<CheckJob> checkJobWeekend = new Weekend<>(CheckJob.class);
|
|
/*Weekend<CheckJob> checkJobWeekend = new Weekend<>(CheckJob.class);
|
|
checkJobWeekend.weekendCriteria().andEqualTo(CheckJob::getStandardId, id);
|
|
checkJobWeekend.weekendCriteria().andEqualTo(CheckJob::getStandardId, id);
|