|
@@ -411,16 +411,17 @@ public class TaskService {
|
|
|
}
|
|
|
|
|
|
public String getTaskDaPanUrl(long taskId,long caseId){
|
|
|
- MultiValueMap<String, String> params = new LinkedMultiValueMap<>();
|
|
|
- params.add("caseId", caseId+"");
|
|
|
- params.add("taskId", taskId+"");
|
|
|
- RestTemplate restTemplate = new RestTemplate();
|
|
|
- restTemplate.getMessageConverters().set(1, new StringHttpMessageConverter(StandardCharsets.UTF_8));
|
|
|
- ResponseEntity<String> responseEntity = restTemplate.postForEntity
|
|
|
- ("http://" + reportHost + "/Bug/api/analyze/analyse/getTaskToken", params, String.class);
|
|
|
- if (responseEntity.getStatusCode().equals(HttpStatus.OK)){
|
|
|
- String token = responseEntity.getBody();
|
|
|
- return "http://"+reportHost+"/dashboard/#/taskboard?token="+token;
|
|
|
- }else return "error";
|
|
|
+ return "test";
|
|
|
+// MultiValueMap<String, String> params = new LinkedMultiValueMap<>();
|
|
|
+// params.add("caseId", caseId+"");
|
|
|
+// params.add("taskId", taskId+"");
|
|
|
+// RestTemplate restTemplate = new RestTemplate();
|
|
|
+// restTemplate.getMessageConverters().set(1, new StringHttpMessageConverter(StandardCharsets.UTF_8));
|
|
|
+// ResponseEntity<String> responseEntity = restTemplate.postForEntity
|
|
|
+// ("http://" + reportHost + "/Bug/api/analyze/analyse/getTaskToken", params, String.class);
|
|
|
+// if (responseEntity.getStatusCode().equals(HttpStatus.OK)){
|
|
|
+// String token = responseEntity.getBody();
|
|
|
+// return "http://"+reportHost+"/dashboard/#/taskboard?token="+token;
|
|
|
+// }else return "error";
|
|
|
}
|
|
|
}
|