|
@@ -3,10 +3,12 @@ package org.diagbot.graphWeb.controller;
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSONArray;
|
|
import com.alibaba.fastjson.JSONArray;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
+import org.diagbot.graph.javabean.GdbResponse;
|
|
import org.diagbot.graph.jdbc.DriverManager;
|
|
import org.diagbot.graph.jdbc.DriverManager;
|
|
import org.diagbot.graph.jdbc.Neo4jAPI;
|
|
import org.diagbot.graph.jdbc.Neo4jAPI;
|
|
import org.diagbot.common.work.FeatureRate;
|
|
import org.diagbot.common.work.FeatureRate;
|
|
import org.diagbot.graphWeb.work.GraphCalculate;
|
|
import org.diagbot.graphWeb.work.GraphCalculate;
|
|
|
|
+import org.diagbot.graphWeb.work.HighRiskCalculate;
|
|
import org.diagbot.graphWeb.work.ParamsDataProxy;
|
|
import org.diagbot.graphWeb.work.ParamsDataProxy;
|
|
import org.diagbot.common.work.ResponseData;
|
|
import org.diagbot.common.work.ResponseData;
|
|
import org.diagbot.common.work.SearchData;
|
|
import org.diagbot.common.work.SearchData;
|
|
@@ -34,5 +36,12 @@ public class GraphController {
|
|
response.setData(responseData);
|
|
response.setData(responseData);
|
|
return response;
|
|
return response;
|
|
}
|
|
}
|
|
|
|
+ @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;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|