| | |
| | | if (platformFiles == null && platformFiles.size() == 0) { |
| | | throw new BusinessException("未找到文件!"); |
| | | } |
| | | |
| | | //获取关系 |
| | | List<PlatformFileUser> list = platformFileUserService.list(Wrappers.lambdaQuery(PlatformFileUser.class).in(PlatformFileUser::getFileId, param.getFileIds())); |
| | | if (!list.isEmpty()) { |
| | | //删除关系 |
| | | boolean remove = platformFileUserService.remove(Wrappers.lambdaQuery(PlatformFileUser.class).in(PlatformFileUser::getFileId, param.getFileIds())); |
| | | if (remove) { |
| | | platformFileUserService.remove(Wrappers.lambdaQuery(PlatformFileUser.class).in(PlatformFileUser::getFileId, param.getFileIds())); |
| | | } |
| | | //删除文件 |
| | | return removeByIds(param.getFileIds()); |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | |