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);