diff --git a/src/main/java/com/zcloud/service/eduBus/impl/StudentServiceImpl.java b/src/main/java/com/zcloud/service/eduBus/impl/StudentServiceImpl.java index e3f1768..5b64bff 100644 --- a/src/main/java/com/zcloud/service/eduBus/impl/StudentServiceImpl.java +++ b/src/main/java/com/zcloud/service/eduBus/impl/StudentServiceImpl.java @@ -3,7 +3,6 @@ package com.zcloud.service.eduBus.impl; import com.zcloud.entity.Page; import com.zcloud.entity.PageData; import com.zcloud.mapper.dsno3.eduStudy.*; -import com.zcloud.mapper.dsno3.eduStudy.ClasscurriculumchapterMapper; import com.zcloud.service.eduBus.StudentService; import com.zcloud.util.Tools; import org.apache.commons.lang3.StringUtils; @@ -32,7 +31,7 @@ public class StudentServiceImpl implements StudentService { private CurriculumPostMapper curriculumPostMapper; @Resource - private ClasscurriculumchapterMapper classcurriculumchapterMapper; + private ClassCurriculumChapterMapper classCurriculumChapterMapper; @Resource private StageExamMapper stageExamMapper; @@ -229,14 +228,14 @@ public class StudentServiceImpl implements StudentService { for (PageData data : curriculumList) { data.put("STUDENT_ID", pd.getString("STUDENT_ID")); data.put("PARENT_ID", "0"); - List chapterList = classcurriculumchapterMapper.getListByClass(data); + List chapterList = classCurriculumChapterMapper.getListByClass(data); if (data.get("CATALOGUELEVEL") != null && Tools.notEmpty(data.get("CATALOGUELEVEL").toString()) && "2".equals(data.get("CATALOGUELEVEL").toString()) && chapterList != null && chapterList.size() > 0) { for (PageData chapter : chapterList) { PageData firstChapter = new PageData(); firstChapter.put("CLASSCURRICULUM_ID", chapter.get("CLASSCURRICULUM_ID")); firstChapter.put("PARENT_ID", chapter.get("CHAPTER_ID")); firstChapter.put("STUDENT_ID", pd.get("STUDENT_ID")); - List nodesList = classcurriculumchapterMapper.getListByClass(firstChapter); + List nodesList = classCurriculumChapterMapper.getListByClass(firstChapter); for (PageData node : nodesList) { coursewareNameBuffer.append(node.getString("NAME")); coursewareNameBuffer.append("、"); diff --git a/src/main/resources/mybatis/dsno3/eduStudy/ClassCurriculumChapterMapper.xml b/src/main/resources/mybatis/dsno3/eduStudy/ClassCurriculumChapterMapper.xml new file mode 100644 index 0000000..05d0c6a --- /dev/null +++ b/src/main/resources/mybatis/dsno3/eduStudy/ClassCurriculumChapterMapper.xml @@ -0,0 +1,66 @@ + + + + + +