xiatian 5 vuotta sitten
vanhempi
commit
529ef7ec94

+ 8 - 3
src/main/java/cn/com/qmth/examcloud/app/controller/PracticeExamRestController.java

@@ -61,10 +61,15 @@ public class PracticeExamRestController {
         return oeService.startPracticeExamRecord(key, token, examStudentId);
     }
 
+    @ApiOperation(value = "获取结束练习的试卷大题结构信息接口")
+    @RequestMapping(value = "/exam/admin/record/paper/struct/list", method = {RequestMethod.POST})
+    public Result getExamAdminRecordPaperStructList(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @RequestParam String examRecordId,@RequestParam(required = false) String fromCache) throws Exception {
+        return oeService.getAdminExamPaperStructList(key, token, examRecordId,fromCache);
+    }
     @ApiOperation(value = "获取当前练习的试卷大题结构信息接口")
-    @RequestMapping(value = "/exam/record/paper/struct/list", method = {RequestMethod.POST})
-    public Result getExamRecordPaperStructList(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @RequestParam String examRecordId,@RequestParam(required = false) String fromCache) throws Exception {
-        return oeService.getExamRecordPaperStructList(key, token, examRecordId,fromCache);
+    @RequestMapping(value = "/exam/student/record/paper/struct/list", method = {RequestMethod.POST})
+    public Result getExamStudentRecordPaperStructList(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token, @RequestParam String examRecordId) throws Exception {
+        return oeService.getStudentExamPaperStructList(key, token, examRecordId);
     }
 
     @ApiOperation(value = "获取当前练习的考试基本信息接口")

+ 11 - 1
src/main/java/cn/com/qmth/examcloud/app/service/CoreOeService.java

@@ -103,7 +103,17 @@ public interface CoreOeService {
      * @return
      * @throws Exception
      */
-    Result getExamRecordPaperStructList(String key, String token, String examRecordId,String fromCache) throws Exception;
+    Result getAdminExamPaperStructList(String key, String token, String examRecordId,String fromCache) throws Exception;
+    /**
+     * 获取当前练习的试卷大题结构信息
+     *
+     * @param key
+     * @param token
+     * @param examRecordId
+     * @return
+     * @throws Exception
+     */
+    Result getStudentExamPaperStructList(String key, String token, String examRecordId) throws Exception;
 
     /**
      * 获取当前练习的试卷试题列表

+ 7 - 1
src/main/java/cn/com/qmth/examcloud/app/service/impl/CoreOeServiceImpl.java

@@ -115,7 +115,7 @@ public class CoreOeServiceImpl implements CoreOeService {
     }
 
     @Override
-    public Result getExamRecordPaperStructList(String key, String token, String examRecordId,String fromCache) throws Exception {
+    public Result getAdminExamPaperStructList(String key, String token, String examRecordId,String fromCache) throws Exception {
         //封装请求参数
         String requestUrl=null;
         if("1".equals(fromCache)) {
@@ -125,6 +125,12 @@ public class CoreOeServiceImpl implements CoreOeService {
         }
         return HttpUtils.doGet(requestUrl, key, token);
     }
+    @Override
+    public Result getStudentExamPaperStructList(String key, String token, String examRecordId) throws Exception {
+        //封装请求参数
+        String requestUrl = String.format("%s/api/ecs_oe_student/examRecordPaperStruct/getExamRecordPaperStruct?fromCache=1&examRecordDataId=%s", sysProperty.getCoreOeStudentUrl(), examRecordId);
+        return HttpUtils.doGet(requestUrl, key, token);
+    }
 
     @Override
     public Result getExamRecordPaperQuestionList(String key, String token) throws Exception {