修改bug

master
xiaoCJ 8 months ago
parent f0e8ed5125
commit 4802bced5a

@ -578,11 +578,13 @@ public class ObjectiveApi {
// *根据客观题类型査询客观题 // *根据客观题类型査询客观题
@AnonymousAccess @AnonymousAccess
@ApiOperation("获取所选客观题数量及分数") @ApiOperation("根据客观题类型査询客观题")
@PostMapping("selectObjByType") @PostMapping("selectObjByType")
private List<SysObjectiveQuestions> selectObjByType(@RequestParam String type, private List<SysObjectiveQuestionsDto> selectObjByType(@RequestParam String type,
@RequestParam String schoolId, @RequestParam String schoolId,
@RequestParam String systemOwner) { @RequestParam String systemOwner) {
return sysObjectiveQuestionMapper.selectObjByType(type, schoolId); List<SysObjectiveQuestionsDto> sysObjectiveQuestionsDtos = sysObjectiveQuestionMapper.selectObjByType(type, schoolId);
return sysObjectiveQuestionsDtos;
} }
} }

@ -56,5 +56,5 @@ public interface SysObjectiveQuestionsMapper {
Map<Integer, BigDecimal> getChooseObjCountAndSorce(@Param("list") List<String> objectIdList); Map<Integer, BigDecimal> getChooseObjCountAndSorce(@Param("list") List<String> objectIdList);
List<SysObjectiveQuestions> selectObjByType(@Param("type") String type,@Param("schoolId") String schoolId); List<SysObjectiveQuestionsDto> selectObjByType(@Param("type") String type,@Param("schoolId") String schoolId);
} }

@ -487,7 +487,7 @@
</select> </select>
<select id="selectObjByType" parameterType="java.util.List" resultType="java.util.Map"> <select id="selectObjByType" parameterType="java.lang.String" resultMap="DtoMap">
SELECT s.objective_id, s.content, sc.two_name, three_name SELECT s.objective_id, s.content, sc.two_name, three_name
FROM sys_objective_questions s FROM sys_objective_questions s
LEFT JOIN sys_topic_and_course sc LEFT JOIN sys_topic_and_course sc

Loading…
Cancel
Save