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 05fc03c..27dd146 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 @@ -435,7 +435,7 @@ public class ObjectiveApi { * return:List */ @AnonymousAccess - @ApiOperation("根据章节I查询所有内置题目") + @ApiOperation("根据章节ID查询所有内置题目") @PostMapping("selectObjectQuestionListByChapterId") private List selectObjectQuestionListByChapterId(@RequestParam String chapterId) { SysTopicAndCourseExample example = new SysTopicAndCourseExample(); diff --git a/src/main/java/com/sztzjy/resource_center/mapper/SysThreeCatalogMapper.java b/src/main/java/com/sztzjy/resource_center/mapper/SysThreeCatalogMapper.java index b1e358b..980419c 100644 --- a/src/main/java/com/sztzjy/resource_center/mapper/SysThreeCatalogMapper.java +++ b/src/main/java/com/sztzjy/resource_center/mapper/SysThreeCatalogMapper.java @@ -49,7 +49,7 @@ public interface SysThreeCatalogMapper { List selectNameByCourseID(@Param("oneId") String oneId, @Param("source") String source); - @Select("select three_id from sys_three_catalog where three_name =#{threeName} and two_name ={twoName}") + @Select("select three_id from sys_three_catalog where three_name =#{threeName} and two_name =#{twoName}") String getIdByName(@Param("threeName") String threeName, @Param("twoName") String twoName); } \ No newline at end of file