From 203cd537c3f43579604e76f605fa948a8c47017a Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Tue, 23 Dec 2025 18:31:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=B6=E6=97=8F=E6=B6=88=E6=81=AF=E7=9A=84?= =?UTF-8?q?=E5=A4=84=E7=90=86=E5=A2=9E=E5=8A=A0=E4=BA=8B=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../circle/other/app/command/family/ApplyJoinFamilyExe.java | 3 ++- .../other/app/command/family/FamilyMessageHandleExe.java | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/family/ApplyJoinFamilyExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/family/ApplyJoinFamilyExe.java index 64391aba..a9f1b1fb 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/family/ApplyJoinFamilyExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/family/ApplyJoinFamilyExe.java @@ -28,6 +28,7 @@ import java.util.concurrent.TimeUnit; import com.red.circle.other.inner.model.dto.user.UserProfileDTO; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Component; +import org.springframework.transaction.annotation.Transactional; /** *
@@ -46,7 +47,7 @@ public class ApplyJoinFamilyExe { private final FamilyMessageService familyMessageService; private final FamilyMemberInfoService familyMemberInfoService; - + @Transactional(rollbackFor = Exception.class) public void execute(ApplyJoinFamilyCmd cmd) { String string = redisService.getString(FamilyKeys.USER_LEAVE.getKey()); ResponseAssert.isNull(FamilyErrorCode.USER_RECENT_LEAVE, string); diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/family/FamilyMessageHandleExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/family/FamilyMessageHandleExe.java index 48f38c7c..7fe3ae8c 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/family/FamilyMessageHandleExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/family/FamilyMessageHandleExe.java @@ -26,6 +26,7 @@ import java.util.Objects; import java.util.Optional; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Component; +import org.springframework.transaction.annotation.Transactional; /** *
@@ -44,6 +45,7 @@ public class FamilyMessageHandleExe { private final FamilyMessageService familyMessageService; private final FamilyMemberInfoService familyMemberInfoService; + @Transactional(rollbackFor = Exception.class) public void execute(FamilyMessageHandleCmd cmd) { isExistFamily(cmd);