|
@@ -66,6 +66,7 @@ public class IdeaCommentServiceImpl extends ServiceImpl<IdeaCommentMapper, IdeaC
|
|
|
if (oldIdeaComment != null) {
|
|
|
Idea idea = ideaMapper.selectOne(new QueryWrapper<Idea>().eq("id", oldIdeaComment.getIdeaId()));
|
|
|
idea.setScore(0.0);
|
|
|
+ idea.setIsEvaluated(0);
|
|
|
ideaMapper.updateById(idea);
|
|
|
ideaCommentMapper.deleteById(ideaComment.getId());
|
|
|
}else{
|