Commit 183799ed authored by liqin's avatar liqin 💬

bug fixed

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