|
@@ -478,6 +478,7 @@ public class PlanServiceImpl extends ServiceImpl<PlanMapper, Plan> implements Pl
|
|
|
Long id = parDto.getId();
|
|
|
List<Long> idList = new ArrayList<>();
|
|
|
idList.add(id);
|
|
|
+
|
|
|
this.deletePlan(idList);
|
|
|
this.removeById(id);
|
|
|
|
|
@@ -516,6 +517,9 @@ public class PlanServiceImpl extends ServiceImpl<PlanMapper, Plan> implements Pl
|
|
|
}
|
|
|
|
|
|
private void deletePlan(List<Long> planIdList) {
|
|
|
+ planFactoryService.remove(new QueryWrapper<PlanFactory>().lambda().in(PlanFactory::getPlanId,planIdList));
|
|
|
+ plantypeService.remove(new QueryWrapper<Plantype>().lambda().in(Plantype::getPlanId,planIdList));
|
|
|
+ planchildService.remove(new QueryWrapper<Planchild>().lambda().in(Planchild::getPlanId,planIdList));
|
|
|
|
|
|
pointtempService.remove(new QueryWrapper<Pointtemp>().lambda().in(Pointtemp::getPlanId, planIdList));
|
|
|
|