fix(接口测试): 修复用例报告日志显示错误的缺陷
This commit is contained in:
parent
87bf58a51c
commit
d19071ad1e
|
@ -30,7 +30,7 @@ public class ApiReportLogService {
|
||||||
private ApiReportMapper apiReportMapper;
|
private ApiReportMapper apiReportMapper;
|
||||||
|
|
||||||
|
|
||||||
public void deleteLog(String id) {
|
public LogDTO deleteLog(String id) {
|
||||||
ApiReport apiReport = apiReportMapper.selectByPrimaryKey(id);
|
ApiReport apiReport = apiReportMapper.selectByPrimaryKey(id);
|
||||||
Project project = projectMapper.selectByPrimaryKey(apiReport.getProjectId());
|
Project project = projectMapper.selectByPrimaryKey(apiReport.getProjectId());
|
||||||
LogDTO dto = new LogDTO(
|
LogDTO dto = new LogDTO(
|
||||||
|
@ -45,7 +45,7 @@ public class ApiReportLogService {
|
||||||
dto.setPath("/api/report/case/delete/" + apiReport.getId());
|
dto.setPath("/api/report/case/delete/" + apiReport.getId());
|
||||||
dto.setMethod(HttpMethodConstants.GET.name());
|
dto.setMethod(HttpMethodConstants.GET.name());
|
||||||
dto.setOriginalValue(JSON.toJSONBytes(apiReport));
|
dto.setOriginalValue(JSON.toJSONBytes(apiReport));
|
||||||
operationLogService.add(dto);
|
return dto;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updateLog(String id) {
|
public void updateLog(String id) {
|
||||||
|
|
Loading…
Reference in New Issue