diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/family/FamilyCreateExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/family/FamilyCreateExe.java index 47927c93..6faec7c0 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/family/FamilyCreateExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/family/FamilyCreateExe.java @@ -36,6 +36,7 @@ import java.math.BigDecimal; import java.util.Objects; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Component; +import org.springframework.transaction.annotation.Transactional; /** *
@@ -61,6 +62,7 @@ public class FamilyCreateExe { private final FamilyLevelConfigService familyLevelConfigService; private final ApprovalUserSettingDataService approvalUserSettingDataService; + @Transactional(rollbackFor = Exception.class) public Long execute(FamilyCreateCmd cmd) { checkParam(cmd);