|
@@ -72,10 +72,8 @@ public class FodderServiceImpl extends ServiceImpl<FodderMapper, FodderEntity> i
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public Result removes(String ids) {
|
|
|
- String[] split = ids.split(ids);
|
|
|
- BaseRuntimeException.isEmpty(Arrays.asList(split), 0,"参数为空, 不需要处理");
|
|
|
- for (String id : split) {
|
|
|
+ public Result remove(String id) {
|
|
|
+
|
|
|
FodderEntity entity = this.getById(id);
|
|
|
// 检查场景是否被引用
|
|
|
boolean exist = workService.existBySceneCode(entity.getSceneCode());
|
|
@@ -83,7 +81,6 @@ public class FodderServiceImpl extends ServiceImpl<FodderMapper, FodderEntity> i
|
|
|
// 真删除目录
|
|
|
fileUtils.del(entity.getFilePath());
|
|
|
this.removeById(id);
|
|
|
- }
|
|
|
|
|
|
return Result.success();
|
|
|
}
|