|
|
@@ -196,7 +196,7 @@ public class LifeCommentService {
|
|
|
return commonRatingMapper.update(null, new UpdateWrapper<CommonRating>()
|
|
|
.setSql("like_count = like_count + 1")
|
|
|
.eq("id", huifuId));
|
|
|
- } else if (CommonConstant.COMMENT_LIKE.equals(type) || CommonConstant.DYNAMIC_LIKE.equals(type) || CommonConstant.CLOCK_IN_LIKE.equals(type)) {
|
|
|
+ } else if (CommonConstant.COMMENT_LIKE.equals(type) || CommonConstant.DYNAMIC_LIKE.equals(type) || CommonConstant.CLOCK_IN_LIKE.equals(type) || CommonConstant.SECOND_HAND_LIKE.equals(type)) {
|
|
|
// 12-评论点赞:更新评论表点赞数
|
|
|
return commonCommentMapper.update(null, new UpdateWrapper<CommonComment>()
|
|
|
.setSql("like_count = like_count + 1")
|
|
|
@@ -364,7 +364,7 @@ public class LifeCommentService {
|
|
|
return commonRatingMapper.update(null, new UpdateWrapper<CommonRating>()
|
|
|
.setSql("like_count = like_count - 1")
|
|
|
.eq("id", huifuId));
|
|
|
- } else if (CommonConstant.COMMENT_LIKE.equals(type) || CommonConstant.DYNAMIC_LIKE.equals(type) || CommonConstant.CLOCK_IN_LIKE.equals(type)) {
|
|
|
+ } else if (CommonConstant.COMMENT_LIKE.equals(type) || CommonConstant.DYNAMIC_LIKE.equals(type) || CommonConstant.CLOCK_IN_LIKE.equals(type) || CommonConstant.SECOND_HAND_LIKE.equals(type)) {
|
|
|
// 12-评论点赞:更新评论表点赞数
|
|
|
return commonCommentMapper.update(null, new UpdateWrapper<CommonComment>()
|
|
|
.setSql("like_count = like_count - 1")
|