diff --git a/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugCommonService.java b/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugCommonService.java index 2b19898836..e3f9adcdaf 100644 --- a/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugCommonService.java +++ b/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugCommonService.java @@ -42,7 +42,6 @@ import java.util.stream.Collectors; * @author song-cc-rock */ @Service -@Transactional(rollbackFor = Exception.class) public class BugCommonService { @Resource @@ -143,6 +142,7 @@ public class BugCommonService { * @param projectId 项目ID * @param bugIds 缺陷ID集合 */ + @Transactional(rollbackFor = Exception.class) public void clearAssociateResource(String projectId, List bugIds) { // 清空附件(关联, 本地上传, 富文本) FileAssociationExample example = new FileAssociationExample(); diff --git a/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugStatusService.java b/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugStatusService.java index 871a24145d..ca9e946654 100644 --- a/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugStatusService.java +++ b/backend/services/bug-management/src/main/java/io/metersphere/bug/service/BugStatusService.java @@ -15,13 +15,11 @@ import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.lang3.BooleanUtils; import org.apache.commons.lang3.StringUtils; import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Transactional; import java.util.ArrayList; import java.util.List; @Service -@Transactional(rollbackFor = Exception.class) public class BugStatusService { @Resource private BugMapper bugMapper;