|
@@ -18,9 +18,7 @@ import org.json.JSONArray;
|
|
|
import org.json.JSONObject;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
-import org.springframework.web.bind.annotation.CrossOrigin;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import edu.nju.service.AnalyzeService;
|
|
|
import edu.nju.service.ReportService;
|
|
@@ -361,6 +359,8 @@ public class AnalyzeController {
|
|
|
@ResponseBody
|
|
|
public void analyseTask(String caseId, String taskId, String workId , HttpServletResponse response){
|
|
|
try {
|
|
|
+ response.setCharacterEncoding("utf-8");
|
|
|
+ response.setContentType("text/html;charset=utf-8");
|
|
|
PrintWriter out = response.getWriter();
|
|
|
AnalysePeopleVO analyseVO=aservice.getReviewAnalysePeopleVO(caseId, taskId,workId);
|
|
|
out.print(new JSONObject(analyseVO));
|
|
@@ -396,10 +396,12 @@ public class AnalyzeController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- @RequestMapping(value = "/analyseExam2")
|
|
|
+ @RequestMapping(value = "/analyseExam2", method = RequestMethod.GET)
|
|
|
@ResponseBody
|
|
|
- public void analyseExam2(String caseId, String taskId, HttpServletResponse response){
|
|
|
+ public void analyseExam2(@RequestParam("caseId") String caseId, @RequestParam("taskId") String taskId, HttpServletResponse response){
|
|
|
try {
|
|
|
+ response.setCharacterEncoding("utf-8");
|
|
|
+ response.setContentType("text/html;charset=utf-8");
|
|
|
PrintWriter out = response.getWriter();
|
|
|
AnalyseVO2 analyseVO=aservice.getReviewAnalyseVO2(caseId, taskId);
|
|
|
out.print(new JSONObject(analyseVO));
|
|
@@ -410,4 +412,18 @@ public class AnalyzeController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @RequestMapping(value = "/analysePage")
|
|
|
+ @ResponseBody
|
|
|
+ public void analysePage(String caseId, String taskId, String workId , HttpServletResponse response){
|
|
|
+ try {
|
|
|
+ PrintWriter out = response.getWriter();
|
|
|
+ AnalysePeopleVO analyseVO=aservice.getReviewAnalysePeopleVO(caseId, taskId,workId);
|
|
|
+ out.print(new JSONObject(analyseVO));
|
|
|
+ out.flush();
|
|
|
+ out.close();
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|