水木报表查询缺陷记录
This commit is contained in:
parent
1ebc5f6c95
commit
93113c1591
@ -66,7 +66,7 @@ public class ShuiMuController {
|
||||
return CommonResult.success();
|
||||
}
|
||||
@PostMapping("/problemsOfTest")
|
||||
public CommonResult<ShuiMuTestProblemResp> problemsOfTest(@RequestBody ShuiMuTestProblemReq req){
|
||||
return null;
|
||||
public CommonResult<List<ShuiMuTestProblemResp>> problemsOfTest(@RequestBody ShuiMuTestProblemReq req){
|
||||
return CommonResult.success(shuiMuService.problemsOfTest(req));
|
||||
}
|
||||
}
|
||||
|
@ -293,9 +293,8 @@ public class ShuiMuServiceImpl implements ShuiMuService {
|
||||
.queryParam("projectId", projectId).toUriString();
|
||||
ResponseEntity<String> exchange = restTemplate.exchange(uriString, HttpMethod.GET, entity, String.class, new HashMap<>());
|
||||
JSONObject jsonObject = JSON.parseObject(exchange.getBody());
|
||||
JSONArray data = jsonObject.getJSONArray("data");
|
||||
|
||||
return null;
|
||||
String data = jsonObject.getString("data");
|
||||
return JSONArray.parseArray(data, ShuiMuTestProblemResp.class);
|
||||
}
|
||||
|
||||
private HttpHeaders getHeaders(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user