...
|
...
|
@@ -188,7 +188,15 @@ public class ResourceServiceImpl implements IResourceService{ |
|
|
throw new ServiceException(400, "资源位id不能为空!");
|
|
|
}
|
|
|
if (CollectionUtils.isEmpty(req.getItems())) {
|
|
|
throw new ServiceException(400, "资源位内容不能为空!");
|
|
|
List<ResourcesContent> content = resourcesContentMapper.selectByResourceId(req.getId());
|
|
|
|
|
|
resourcesContentMapper.deleteByResourceId(req.getId());
|
|
|
List<Integer> resourceContentIds = content.stream().map(ResourcesContent::getId).collect(Collectors.toList());
|
|
|
if (CollectionUtils.isNotEmpty(resourceContentIds)) {
|
|
|
resourcesContentDataMapper.deleteByContentIds(resourceContentIds);
|
|
|
}
|
|
|
return;
|
|
|
//throw new ServiceException(400, "资源位内容不能为空!");
|
|
|
}
|
|
|
|
|
|
int index = 0;
|
...
|
...
|
|