|
|
@@ -34,8 +34,8 @@ public class AnalyzeController {
|
|
|
@Autowired
|
|
|
ReportService rservice;
|
|
|
|
|
|
- @Autowired
|
|
|
- BlockChainAspect blockChainAspect;
|
|
|
+// @Autowired
|
|
|
+// BlockChainAspect blockChainAspect;
|
|
|
|
|
|
//根据用例获取所有有效bug
|
|
|
@RequestMapping(value = "/valid")
|
|
|
@@ -354,23 +354,23 @@ public class AnalyzeController {
|
|
|
return aservice.getHistoricalData(workerId, caseTypeId);
|
|
|
}
|
|
|
|
|
|
- @RequestMapping(value = "/uploadTestReportToBlockChain")
|
|
|
- @ResponseBody
|
|
|
- public void uploadTestReport(String bug_id,HttpServletResponse response){
|
|
|
- try {
|
|
|
- PrintWriter out = response.getWriter();
|
|
|
- JSONObject result = new JSONObject();
|
|
|
- if (blockChainAspect.uploadTestReportInfoToBlockChain(bug_id)) {
|
|
|
- result.put("status","200");
|
|
|
- }else{
|
|
|
- result.put("status","500");
|
|
|
- }
|
|
|
- out.print(result);
|
|
|
- out.flush();
|
|
|
- out.close();
|
|
|
- }catch (IOException e){
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
- }
|
|
|
+// @RequestMapping(value = "/uploadTestReportToBlockChain")
|
|
|
+// @ResponseBody
|
|
|
+// public void uploadTestReport(String bug_id,HttpServletResponse response){
|
|
|
+// try {
|
|
|
+// PrintWriter out = response.getWriter();
|
|
|
+// JSONObject result = new JSONObject();
|
|
|
+// if (blockChainAspect.uploadTestReportInfoToBlockChain(bug_id)) {
|
|
|
+// result.put("status","200");
|
|
|
+// }else{
|
|
|
+// result.put("status","500");
|
|
|
+// }
|
|
|
+// out.print(result);
|
|
|
+// out.flush();
|
|
|
+// out.close();
|
|
|
+// }catch (IOException e){
|
|
|
+// e.printStackTrace();
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
}
|