|
@@ -42,9 +42,21 @@ public class SceneCooperationServiceImpl extends ServiceImpl<ISceneCooperationMa
|
|
|
List<SceneCooperation> list = this.list(wrapper);
|
|
|
List<Long> ids = list.stream().map(SceneCooperation::getId).collect(Collectors.toList());
|
|
|
if(ids.size() >0){
|
|
|
- sceneResourceCooperationService.removeByIds(ids);
|
|
|
+ this.removeByIds(ids);
|
|
|
sceneResourceCooperationService.deleteBatchByCooperationIds(ids);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void delByNum(String num) {
|
|
|
+ LambdaQueryWrapper<SceneCooperation> wrapper = new LambdaQueryWrapper<>();
|
|
|
+ wrapper.eq(SceneCooperation::getSceneNum,num);
|
|
|
+ List<SceneCooperation> list = this.list(wrapper);
|
|
|
+ List<Long> ids = list.stream().map(SceneCooperation::getId).collect(Collectors.toList());
|
|
|
+ if(ids.size() >0){
|
|
|
+ this.removeByIds(ids);
|
|
|
+ sceneResourceCooperationService.deleteBatchByCooperationIds(ids);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|