|
@@ -1,17 +1,26 @@
|
|
|
package org.diagbot.push.controller;
|
|
|
|
|
|
+import org.diagbot.common.work.SearchData;
|
|
|
+import org.diagbot.graph.javabean.GdbResponse;
|
|
|
+import org.diagbot.graphWeb.work.HighRiskCalculate;
|
|
|
+import org.diagbot.pub.api.Response;
|
|
|
import org.diagbot.pub.web.BaseController;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
+import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
+
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
+
|
|
|
@Controller
|
|
|
@RequestMapping("/graph")
|
|
|
public class GraphController extends BaseController {
|
|
|
- {
|
|
|
- listView = "/pages/graph/list.html";
|
|
|
- }
|
|
|
-
|
|
|
- @RequestMapping({"/index"})
|
|
|
- public String index() {
|
|
|
- return listView;
|
|
|
+ @RequestMapping(value = "/highRisk", method = RequestMethod.POST)
|
|
|
+ @ResponseBody
|
|
|
+ public Response<GdbResponse> getHighRisk(HttpServletRequest request, @RequestBody SearchData searchData) throws Exception {
|
|
|
+ HighRiskCalculate highRiskCalculate = new HighRiskCalculate();
|
|
|
+ Response<GdbResponse> gdbResponseResponse = highRiskCalculate.calculateHighRisk(request, searchData);
|
|
|
+ return gdbResponseResponse;
|
|
|
}
|
|
|
}
|