|
@@ -47,6 +47,25 @@ public class AnalyzeController {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ //根据用例获取所有有效bug
|
|
|
+ @RequestMapping(value = "/validByBugId")
|
|
|
+ @ResponseBody
|
|
|
+ public void getValidByBugId(String id, HttpServletResponse response) {
|
|
|
+ try {
|
|
|
+ PrintWriter out = response.getWriter();
|
|
|
+ JSONObject result = new JSONObject();
|
|
|
+ List<String> list = aservice.getValidByBugId(id);
|
|
|
+ result.put("Count", list.size());
|
|
|
+ result.put("Detail", new JSONArray(list));
|
|
|
+ out.print(result);
|
|
|
+ out.flush();
|
|
|
+ out.close();
|
|
|
+ } catch (Exception e) {
|
|
|
+ // TODO Auto-generated catch block
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
//获取所有有点赞记录的bug
|
|
|
@RequestMapping(value = "/thums")
|