From 8481c0a324e38bedf2634ad29bb941a4ddb7d0cf Mon Sep 17 00:00:00 2001 From: wangpeng Date: Sun, 24 Mar 2024 17:01:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86ClassCurriculumChapterMapper?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E9=87=8D=E5=91=BD=E5=90=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../eduBus/impl/StudentServiceImpl.java | 7 +- .../eduStudy/ClassCurriculumChapterMapper.xml | 66 +++++++++++++++++++ 2 files changed, 69 insertions(+), 4 deletions(-) create mode 100644 src/main/resources/mybatis/dsno3/eduStudy/ClassCurriculumChapterMapper.xml 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 @@ + + + + + +