fix(用例管理): 用例添加前后置问题

This commit is contained in:
WangXu10 2024-04-19 16:31:35 +08:00 committed by 刘瑞斌
parent fa68d41013
commit c0a1686213

View File

@ -66,7 +66,7 @@ public class FunctionalCaseRelationshipController {
@CheckOwner(resourceId = "#request.getProjectId()", resourceType = "project")
public void add(@Validated @RequestBody RelationshipAddRequest request) {
List<String> excludeIds = functionalCaseRelationshipEdgeService.getExcludeIds(request.getId());
request.setExcludeIds(excludeIds);
request.getExcludeIds().addAll(excludeIds);
List<String> ids = functionalCaseService.doSelectIds(request, request.getProjectId());
if (CollectionUtils.isNotEmpty(ids)) {
functionalCaseRelationshipEdgeService.add(request, ids, SessionUtils.getUserId());