fix(系统设置): 修改api文档

--bug=1037319 --user=王孝刚 【api文档】api文档-“登录”写错了
https://www.tapd.cn/55049933/s/1477481
This commit is contained in:
wxg0103 2024-03-19 14:07:33 +08:00 committed by Craftsman
parent 35c3da4534
commit 4333fdc8c9
3 changed files with 11 additions and 7 deletions

View File

@ -121,11 +121,13 @@ public class ApiReportService {
}
private ApiReport checkResource(String id) {
ApiReport apiReport = apiReportMapper.selectByPrimaryKey(id);
if (apiReport == null) {
ApiReportExample example = new ApiReportExample();
example.createCriteria().andIdEqualTo(id).andDeletedEqualTo(false);
List<ApiReport> apiReport = apiReportMapper.selectByExample(example);
if (CollectionUtils.isEmpty(apiReport)) {
throw new MSException(Translator.get("api_case_report_not_exist"));
}
return apiReport;
return apiReport.getFirst();
}
public void batchDelete(ApiReportBatchRequest request, String userId) {

View File

@ -127,11 +127,13 @@ public class ApiScenarioReportService {
}
private ApiScenarioReport checkResource(String id) {
ApiScenarioReport scenarioReport = apiScenarioReportMapper.selectByPrimaryKey(id);
if (scenarioReport == null) {
ApiScenarioReportExample example = new ApiScenarioReportExample();
example.createCriteria().andIdEqualTo(id).andDeletedEqualTo(false);
List<ApiScenarioReport> scenarioReport = apiScenarioReportMapper.selectByExample(example);
if (CollectionUtils.isEmpty(scenarioReport)) {
throw new RuntimeException(Translator.get("api_scenario_report_not_exist"));
}
return scenarioReport;
return scenarioReport.getFirst();
}
public void batchDelete(ApiReportBatchRequest request, String userId) {

View File

@ -29,7 +29,7 @@ import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping
@Tag(name="")
@Tag(name="")
public class LoginController {
@Resource