This commit is contained in:
chenjianxing 2020-12-23 16:59:42 +08:00
commit e61d0b7860
1 changed files with 0 additions and 2 deletions

View File

@ -29,8 +29,6 @@ public class ApiDefinitionExecResultService {
public void saveApiResult(TestResult result, String type) { public void saveApiResult(TestResult result, String type) {
result.getScenarios().get(0).getRequestResults().forEach(item -> { result.getScenarios().get(0).getRequestResults().forEach(item -> {
// 清理原始资源每个执行 保留一条结果
extApiDefinitionExecResultMapper.deleteByResourceId(item.getName());
ApiDefinitionExecResult saveResult = new ApiDefinitionExecResult(); ApiDefinitionExecResult saveResult = new ApiDefinitionExecResult();
saveResult.setId(UUID.randomUUID().toString()); saveResult.setId(UUID.randomUUID().toString());
saveResult.setCreateTime(System.currentTimeMillis()); saveResult.setCreateTime(System.currentTimeMillis());