Commit 183799ed authored by liqin's avatar liqin 💬

bug fixed

parent 38936c44
...@@ -267,7 +267,8 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements ...@@ -267,7 +267,8 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements
queryWrapper.select(ExhibitionBoard::getId); queryWrapper.select(ExhibitionBoard::getId);
final List<String> ExhibitionBoardIdList = this.exhibitionBoardService.listObjs(queryWrapper, Object::toString); final List<String> ExhibitionBoardIdList = this.exhibitionBoardService.listObjs(queryWrapper, Object::toString);
this.exhibitionBoardService.removeByIds(ExhibitionBoardIdList); this.exhibitionBoardService.removeByIds(ExhibitionBoardIdList);
update = this.videoContentService.removeById(videoContent); this.videoContentTmpService.removeById(videoContentId);
update = this.videoContentService.removeById(videoContentId);
break; break;
case ADD: case ADD:
videoContent.setPublished(true); videoContent.setPublished(true);
...@@ -331,7 +332,8 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements ...@@ -331,7 +332,8 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements
break; break;
case REMOVE: case REMOVE:
this.learningContentBoardService.remove(Wrappers.<LearningContentBoard>lambdaUpdate().eq(LearningContentBoard::getExhibitionBoardId, exhibitionBoard.getId())); this.learningContentBoardService.remove(Wrappers.<LearningContentBoard>lambdaUpdate().eq(LearningContentBoard::getExhibitionBoardId, exhibitionBoard.getId()));
update = this.exhibitionBoardService.removeById(exhibitionBoard); this.exhibitionBoardTmpService.removeById(exhibitionBoardId);
update = this.exhibitionBoardService.removeById(exhibitionBoardId);
break; break;
case ADD: case ADD:
exhibitionBoard.setPublished(true); exhibitionBoard.setPublished(true);
...@@ -410,7 +412,8 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements ...@@ -410,7 +412,8 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements
update = this.learningContentService.updateById(learningContent); update = this.learningContentService.updateById(learningContent);
break; break;
case REMOVE: case REMOVE:
update = this.learningContentService.removeById(learningContent); this.learningContentTmpService.removeById(learningContentId);
update = this.learningContentService.removeById(learningContentId);
break; break;
case ADD: case ADD:
learningContent.setPublished(true); learningContent.setPublished(true);
......
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