|
|
@@ -123,7 +123,7 @@ public class UserCommentServiceImpl extends ServiceImpl<UserCommentMapper, UserC
|
|
|
@Override
|
|
|
public String giveCancel(Integer id) {
|
|
|
UserComment userComment=queryEntity(id);
|
|
|
- if(userComment.getGiveNum()>1){
|
|
|
+ if(userComment.getGiveNum()>0){
|
|
|
userComment.setGiveNum(userComment.getGiveNum()-1);
|
|
|
this.updateById(userComment);
|
|
|
//删除点赞记录表
|