From e4f0d58bbc9de4d8a3f831968323f6205673fe07 Mon Sep 17 00:00:00 2001 From: xiaoCJ <406612557@qq.com> Date: Mon, 22 Jul 2024 08:41:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sztzjy/resource_center/controller/api/ObjectiveApi.java | 6 ++++-- .../resource_center/mapper/SysObjectiveQuestionsMapper.java | 2 +- src/main/resources/mapper/SysObjectiveQuestionsMapper.xml | 5 ++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/sztzjy/resource_center/controller/api/ObjectiveApi.java b/src/main/java/com/sztzjy/resource_center/controller/api/ObjectiveApi.java index 3d01725..5abd9b7 100644 --- a/src/main/java/com/sztzjy/resource_center/controller/api/ObjectiveApi.java +++ b/src/main/java/com/sztzjy/resource_center/controller/api/ObjectiveApi.java @@ -571,8 +571,10 @@ public class ObjectiveApi { @AnonymousAccess @ApiOperation("获取所选客观题数量及分数") @PostMapping("getChooseObjCountAndSorce") - private Map getChooseObjCountAndSorce(@RequestParam List objectIdList) { - return sysObjectiveQuestionMapper.getChooseObjCountAndSorce(objectIdList); + private Map getChooseObjCountAndSorce(@RequestBody List objectIdList) { + + Map chooseObjCountAndSorce = sysObjectiveQuestionMapper.getChooseObjCountAndSorce(objectIdList); + return chooseObjCountAndSorce; } diff --git a/src/main/java/com/sztzjy/resource_center/mapper/SysObjectiveQuestionsMapper.java b/src/main/java/com/sztzjy/resource_center/mapper/SysObjectiveQuestionsMapper.java index 4b9c43b..7680abc 100644 --- a/src/main/java/com/sztzjy/resource_center/mapper/SysObjectiveQuestionsMapper.java +++ b/src/main/java/com/sztzjy/resource_center/mapper/SysObjectiveQuestionsMapper.java @@ -54,7 +54,7 @@ public interface SysObjectiveQuestionsMapper { void batchDelete(@Param("list") List ids); - Map getChooseObjCountAndSorce(@Param("list") List objectIdList); + Map getChooseObjCountAndSorce(@Param("list") List objectIdList); List selectObjByType(@Param("type") String type,@Param("schoolId") String schoolId); } \ No newline at end of file diff --git a/src/main/resources/mapper/SysObjectiveQuestionsMapper.xml b/src/main/resources/mapper/SysObjectiveQuestionsMapper.xml index ed20b95..eeaf435 100644 --- a/src/main/resources/mapper/SysObjectiveQuestionsMapper.xml +++ b/src/main/resources/mapper/SysObjectiveQuestionsMapper.xml @@ -477,8 +477,8 @@ - + SELECT count(*),sum(score)FROM sys_objective_questions WHERE objective_id IN #{id} @@ -496,5 +496,4 @@ and s.is_delete = FALSE and s.type = #{type} - \ No newline at end of file