fix(接口测试): 修复用例报告日志显示错误的缺陷

This commit is contained in:
wxg0103 2024-04-23 19:08:16 +08:00 committed by Craftsman
parent 87bf58a51c
commit d19071ad1e
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ public class ApiReportLogService {
private ApiReportMapper apiReportMapper;
public void deleteLog(String id) {
public LogDTO deleteLog(String id) {
ApiReport apiReport = apiReportMapper.selectByPrimaryKey(id);
Project project = projectMapper.selectByPrimaryKey(apiReport.getProjectId());
LogDTO dto = new LogDTO(
@ -45,7 +45,7 @@ public class ApiReportLogService {
dto.setPath("/api/report/case/delete/" + apiReport.getId());
dto.setMethod(HttpMethodConstants.GET.name());
dto.setOriginalValue(JSON.toJSONBytes(apiReport));
operationLogService.add(dto);
return dto;
}
public void updateLog(String id) {