From 151c1e8285aefcbb584b838a541c957b2a2c0608 Mon Sep 17 00:00:00 2001 From: Mlxa0324 Date: Fri, 24 Mar 2023 20:28:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=B7=B2=E7=BB=8F=E4=BA=A4?= =?UTF-8?q?=E5=8D=B7=E7=9A=84=E9=A2=98=E7=9B=AE=E7=AD=94=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jlw/web/GeneralQuestionLogController.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/web/src/main/java/com/ibeetl/jlw/web/GeneralQuestionLogController.java b/web/src/main/java/com/ibeetl/jlw/web/GeneralQuestionLogController.java index a958391f..ec89f00a 100644 --- a/web/src/main/java/com/ibeetl/jlw/web/GeneralQuestionLogController.java +++ b/web/src/main/java/com/ibeetl/jlw/web/GeneralQuestionLogController.java @@ -137,6 +137,23 @@ public class GeneralQuestionLogController extends BaseController { return JsonResult.success(); } + + /** + * 获取已经提交的 + * + * @param questionLogIds 获取提交交卷的题目日志记录IDs + * @param coreUser 用来验证用户登录,为了解耦不会传递到Service层 + * @return + */ + @PostMapping(API + "/getSubmittedAnswer.do") + public JsonResult getSubmittedAnswer(@RequestBody String questionLogIds, @SCoreUser CoreUser coreUser) { + GeneralQuestionLogQuery logQuery = new GeneralQuestionLogQuery(); + logQuery.setGeneralQuestionLogIdPlural(questionLogIds); + logQuery.setQuestionLogAddType(FINALLY_SUBMIT); + logQuery.setUserId(coreUser.getId()); + return JsonResult.success(generalQuestionLogService.getValuesByQueryNotWithPermission(logQuery)); + } + /** * 教师端-手动批改一些题目的分数 *