Browse Source

自动推荐相似但时间靠后的bug(todo)

xujiawei 5 years ago
parent
commit
e592af07fa
1 changed files with 15 additions and 0 deletions
  1. 15 0
      src/main/java/edu/nju/controller/AnalyzeController.java

+ 15 - 0
src/main/java/edu/nju/controller/AnalyzeController.java

@@ -241,4 +241,19 @@ public class AnalyzeController {
 		}
 		return result;
 	}
+
+	@RequestMapping(value = "/afterSimilarBug")
+	@ResponseBody
+	public void getAfterSimilarBug(String bug_id, HttpServletResponse response){
+		try {
+			PrintWriter out = response.getWriter();
+			JSONObject result = new JSONObject();
+			result.put("bugList",aservice.getAfterSimilarBug(bug_id));
+			out.print(result);
+			out.flush();
+			out.close();
+		} catch (Exception e) {
+			e.printStackTrace();
+		}
+	}
 }