fix: 脑图无法删除用例
This commit is contained in:
parent
355fef0e56
commit
af3e905330
|
@ -1206,10 +1206,7 @@ public class TestCaseService {
|
|||
|
||||
public void minderEdit(TestCaseMinderEditRequest request) {
|
||||
List<TestCaseWithBLOBs> data = request.getData();
|
||||
if (CollectionUtils.isEmpty(data)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (CollectionUtils.isNotEmpty(data)) {
|
||||
List<String> editIds = data.stream()
|
||||
.filter(t -> StringUtils.isNotBlank(t.getId()) && t.getId().length() > 20)
|
||||
.map(TestCaseWithBLOBs::getId).collect(Collectors.toList());
|
||||
|
@ -1240,6 +1237,8 @@ public class TestCaseService {
|
|||
editTestCase(item);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
List<String> ids = request.getIds();
|
||||
if (CollectionUtils.isNotEmpty(ids)) {
|
||||
TestCaseBatchRequest deleteRequest = new TestCaseBatchRequest();
|
||||
|
|
Loading…
Reference in New Issue