水木报表查询缺陷记录

This commit is contained in:
even 2025-07-07 15:30:56 +08:00
parent 1ebc5f6c95
commit 93113c1591
2 changed files with 4 additions and 5 deletions

View File

@ -66,7 +66,7 @@ public class ShuiMuController {
return CommonResult.success(); return CommonResult.success();
} }
@PostMapping("/problemsOfTest") @PostMapping("/problemsOfTest")
public CommonResult<ShuiMuTestProblemResp> problemsOfTest(@RequestBody ShuiMuTestProblemReq req){ public CommonResult<List<ShuiMuTestProblemResp>> problemsOfTest(@RequestBody ShuiMuTestProblemReq req){
return null; return CommonResult.success(shuiMuService.problemsOfTest(req));
} }
} }

View File

@ -293,9 +293,8 @@ public class ShuiMuServiceImpl implements ShuiMuService {
.queryParam("projectId", projectId).toUriString(); .queryParam("projectId", projectId).toUriString();
ResponseEntity<String> exchange = restTemplate.exchange(uriString, HttpMethod.GET, entity, String.class, new HashMap<>()); ResponseEntity<String> exchange = restTemplate.exchange(uriString, HttpMethod.GET, entity, String.class, new HashMap<>());
JSONObject jsonObject = JSON.parseObject(exchange.getBody()); JSONObject jsonObject = JSON.parseObject(exchange.getBody());
JSONArray data = jsonObject.getJSONArray("data"); String data = jsonObject.getString("data");
return JSONArray.parseArray(data, ShuiMuTestProblemResp.class);
return null;
} }
private HttpHeaders getHeaders(){ private HttpHeaders getHeaders(){