水木报表查询缺陷记录
This commit is contained in:
parent
1ebc5f6c95
commit
93113c1591
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user