Commit 56a93cd7 authored by nie'hong's avatar nie'hong

修改删除展板出现得bug

parent e3bbf060
...@@ -620,9 +620,9 @@ public class ExhibitionBoardController extends BaseController { ...@@ -620,9 +620,9 @@ public class ExhibitionBoardController extends BaseController {
queryWrapper.eq(LearningContentBoard::getExhibitionBoardId, id); queryWrapper.eq(LearningContentBoard::getExhibitionBoardId, id);
queryWrapper.select(LearningContentBoard::getLearningContentId); queryWrapper.select(LearningContentBoard::getLearningContentId);
List<String> list = this.learningContentBoardService.listObjs(queryWrapper, Object::toString); List<String> list = this.learningContentBoardService.listObjs(queryWrapper, Object::toString);
List<LearningContent> learningContents = this.learningContentService.listByIds(list);
String collect = learningContents.stream().map(LearningContent::getName).collect(Collectors.joining(","));
if (CollectionUtil.isNotEmpty(list)) { if (CollectionUtil.isNotEmpty(list)) {
List<LearningContent> learningContents = this.learningContentService.listByIds(list);
String collect = learningContents.stream().map(LearningContent::getName).collect(Collectors.joining(","));
return getFailResult("该展板被学习内容:" + collect + "使用,不能被删除!"); return getFailResult("该展板被学习内容:" + collect + "使用,不能被删除!");
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment