From 836e7855bb4b093d40f62658b2bf8d10c935bf13 Mon Sep 17 00:00:00 2001 From: linfeng <2445465217@qq.com> Date: Sat, 7 Oct 2023 07:34:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=AF=84=E8=AE=BA=E7=82=B9?= =?UTF-8?q?=E8=B5=9E=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/CommentThumbsServiceImpl.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/java/io/linfeng/modules/app/service/impl/CommentThumbsServiceImpl.java b/src/main/java/io/linfeng/modules/app/service/impl/CommentThumbsServiceImpl.java index 52f6a33..0da1f88 100644 --- a/src/main/java/io/linfeng/modules/app/service/impl/CommentThumbsServiceImpl.java +++ b/src/main/java/io/linfeng/modules/app/service/impl/CommentThumbsServiceImpl.java @@ -48,17 +48,17 @@ public class CommentThumbsServiceImpl extends ServiceImpl() + CommentThumbsEntity commentThumbs = this.lambdaQuery() .eq(CommentThumbsEntity::getCId, id) - .eq(CommentThumbsEntity::getUid, uid)); - - return Optional.ofNullable(one).isPresent(); + .eq(CommentThumbsEntity::getUid, uid) + .one(); + return Optional.ofNullable(commentThumbs).isPresent(); } @Override @@ -70,8 +70,8 @@ public class CommentThumbsServiceImpl extends ServiceImpl