refactor(测试跟踪): 批量删除公共用例库去掉线程

This commit is contained in:
wxg0103 2022-05-14 10:44:23 +08:00 committed by 刘瑞斌
parent d75eb7093c
commit e3c2ff9e10
1 changed files with 4 additions and 10 deletions

View File

@ -2621,16 +2621,10 @@ public class TestCaseService {
}
public void deleteTestCasePublic(String versionId, String refId) {
Thread thread = new Thread(new Runnable() {
@Override
public void run() {
TestCase testCase = new TestCase();
testCase.setRefId(refId);
testCase.setVersionId(versionId);
extTestCaseMapper.deletePublic(testCase);
}
});
thread.start();
TestCase testCase = new TestCase();
testCase.setRefId(refId);
testCase.setVersionId(versionId);
extTestCaseMapper.deletePublic(testCase);
}
public Boolean hasOtherInfo(String caseId) {