xiatian há 5 anos atrás
pai
commit
bd264120d3

+ 6 - 0
src/main/java/cn/com/qmth/examcloud/app/controller/ExamController.java

@@ -55,5 +55,11 @@ public class ExamController extends ControllerSupport {
     public Result getEndExamInfo(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token,@PathVariable Long examRecordDataId) throws Exception{
         return oeService.getEndExamInfo(key, token,examRecordDataId);
     }
+    
+    @ApiOperation(value = "根据examStudentId获取客观分信息")
+    @GetMapping("/queryObjectiveScoreList/{examStudentId}")
+    public Result queryObjectiveScoreList(@RequestHeader(name = PARAM_APP_KEY) String key, @RequestHeader(name = PARAM_APP_TOKEN) String token,@PathVariable Long examStudentId) throws Exception{
+        return oeService.queryObjectiveScoreList(key, token,examStudentId);
+    }
 
 }

+ 8 - 0
src/main/java/cn/com/qmth/examcloud/app/service/CoreOeService.java

@@ -298,4 +298,12 @@ public interface CoreOeService {
      */
     Result getEndExamInfo(String key, String token, Long examRecordDataId) throws Exception;
 
+    /**根据examStudentId获取客观分信息
+     * @param key
+     * @param token
+     * @param examStudentId
+     * @return
+     */
+    Result queryObjectiveScoreList(String key, String token, Long examStudentId) throws Exception;
+
 }

+ 6 - 0
src/main/java/cn/com/qmth/examcloud/app/service/impl/CoreOeServiceImpl.java

@@ -299,4 +299,10 @@ public class CoreOeServiceImpl implements CoreOeService {
         return HttpUtils.doGet(requestUrl, key, token);
     }
 
+    @Override
+    public Result queryObjectiveScoreList(String key, String token, Long examStudentId) throws Exception {
+        final String requestUrl = String.format("%s/api/ecs_oe_admin/exam/score/queryObjectiveScoreList?examStudentId="+examStudentId, sysProperty.getCoreOeAdminUrl());
+        return HttpUtils.doGet(requestUrl, key, token);
+    }
+
 }