处理ClassCurriculumChapterMapper文件重命名问题
parent
23b0e5a2b5
commit
8481c0a324
|
@ -3,7 +3,6 @@ package com.zcloud.service.eduBus.impl;
|
||||||
import com.zcloud.entity.Page;
|
import com.zcloud.entity.Page;
|
||||||
import com.zcloud.entity.PageData;
|
import com.zcloud.entity.PageData;
|
||||||
import com.zcloud.mapper.dsno3.eduStudy.*;
|
import com.zcloud.mapper.dsno3.eduStudy.*;
|
||||||
import com.zcloud.mapper.dsno3.eduStudy.ClasscurriculumchapterMapper;
|
|
||||||
import com.zcloud.service.eduBus.StudentService;
|
import com.zcloud.service.eduBus.StudentService;
|
||||||
import com.zcloud.util.Tools;
|
import com.zcloud.util.Tools;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
@ -32,7 +31,7 @@ public class StudentServiceImpl implements StudentService {
|
||||||
private CurriculumPostMapper curriculumPostMapper;
|
private CurriculumPostMapper curriculumPostMapper;
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private ClasscurriculumchapterMapper classcurriculumchapterMapper;
|
private ClassCurriculumChapterMapper classCurriculumChapterMapper;
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private StageExamMapper stageExamMapper;
|
private StageExamMapper stageExamMapper;
|
||||||
|
@ -229,14 +228,14 @@ public class StudentServiceImpl implements StudentService {
|
||||||
for (PageData data : curriculumList) {
|
for (PageData data : curriculumList) {
|
||||||
data.put("STUDENT_ID", pd.getString("STUDENT_ID"));
|
data.put("STUDENT_ID", pd.getString("STUDENT_ID"));
|
||||||
data.put("PARENT_ID", "0");
|
data.put("PARENT_ID", "0");
|
||||||
List<PageData> chapterList = classcurriculumchapterMapper.getListByClass(data);
|
List<PageData> 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) {
|
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) {
|
for (PageData chapter : chapterList) {
|
||||||
PageData firstChapter = new PageData();
|
PageData firstChapter = new PageData();
|
||||||
firstChapter.put("CLASSCURRICULUM_ID", chapter.get("CLASSCURRICULUM_ID"));
|
firstChapter.put("CLASSCURRICULUM_ID", chapter.get("CLASSCURRICULUM_ID"));
|
||||||
firstChapter.put("PARENT_ID", chapter.get("CHAPTER_ID"));
|
firstChapter.put("PARENT_ID", chapter.get("CHAPTER_ID"));
|
||||||
firstChapter.put("STUDENT_ID", pd.get("STUDENT_ID"));
|
firstChapter.put("STUDENT_ID", pd.get("STUDENT_ID"));
|
||||||
List<PageData> nodesList = classcurriculumchapterMapper.getListByClass(firstChapter);
|
List<PageData> nodesList = classCurriculumChapterMapper.getListByClass(firstChapter);
|
||||||
for (PageData node : nodesList) {
|
for (PageData node : nodesList) {
|
||||||
coursewareNameBuffer.append(node.getString("NAME"));
|
coursewareNameBuffer.append(node.getString("NAME"));
|
||||||
coursewareNameBuffer.append("、");
|
coursewareNameBuffer.append("、");
|
||||||
|
|
|
@ -0,0 +1,66 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.zcloud.mapper.dsno3.eduStudy.ClassCurriculumChapterMapper">
|
||||||
|
|
||||||
|
<select id="getListByClass" resultType="com.zcloud.entity.PageData">
|
||||||
|
SELECT
|
||||||
|
f.CORPINFO_ID,
|
||||||
|
f.ENTERPRISE_ID,
|
||||||
|
f.CLASS_ID,
|
||||||
|
f.CURRICULUM_ID,
|
||||||
|
f.CREATOR,
|
||||||
|
f.CREATTIME,
|
||||||
|
f.OPERATOR,
|
||||||
|
f.OPERATTIME,
|
||||||
|
f.ISDELETE,
|
||||||
|
f.CHAPTER_ID,
|
||||||
|
f.VIDEOCOURSEWARE_ID,
|
||||||
|
f.CLASSCURRICULUM_ID,
|
||||||
|
f.CLASSCURRICULUMCHAPTER_ID,
|
||||||
|
c.CHAPTER_ID,
|
||||||
|
c.NAME,
|
||||||
|
c.CREATOR,
|
||||||
|
c.CREATTIME,
|
||||||
|
c.OPERATOR,
|
||||||
|
c.OPERATTIME,
|
||||||
|
c.ISDELETE,
|
||||||
|
c.CURRICULUM_ID,
|
||||||
|
c.CORPINFO_ID,
|
||||||
|
c.SORT,
|
||||||
|
c.PARENT_ID,
|
||||||
|
c.COURSEWARENAME,
|
||||||
|
c.VIDEOFILES,
|
||||||
|
c.CLASSHOUR,
|
||||||
|
c.VIDEOTIME,
|
||||||
|
c.VIDEOCOURSEWARE_ID,
|
||||||
|
c.CHAPTER_ID_REMOTE,
|
||||||
|
v.COURSEWARENAME,
|
||||||
|
t.NAME SPEAKER,
|
||||||
|
v.COURSEWAREINTRODUCE COURSEWAREINTRODUCE,
|
||||||
|
v.VIDEOCAPTURE COURSEWARECAPTURE,
|
||||||
|
v.VIDEOFILES,
|
||||||
|
IFNULL( v.VIDEOTIME, 0 ) AS VIDEOTIME,
|
||||||
|
IFNULL( a.RESOURCETIME, 0 ) AS RESOURCETIME,
|
||||||
|
IFNULL( a.PLAYCOUNT, 0 ) AS PLAYCOUNT
|
||||||
|
FROM
|
||||||
|
BUS_CLASS_CURRICULUM_CHAPTER f
|
||||||
|
LEFT JOIN BUS_CHAPTER c ON c.CHAPTER_ID = f.CHAPTER_ID
|
||||||
|
LEFT JOIN BUS_VIDEOCOURSEWARE v ON f.VIDEOCOURSEWARE_ID = v.VIDEOCOURSEWARE_ID
|
||||||
|
AND v.ISDELETE = '0'
|
||||||
|
LEFT JOIN BUS_COURSESTUDYVIDEORECORD a ON a.VIDEOCOURSEWARE_ID = v.VIDEOCOURSEWARE_ID
|
||||||
|
AND a.CURRICULUM_ID = c.CURRICULUM_ID
|
||||||
|
AND a.ISDELETE = '0'
|
||||||
|
AND a.STUDENT_ID = #{STUDENT_ID}
|
||||||
|
LEFT JOIN bus_teacher t ON t.TEACHER_ID = v.SPEAKER
|
||||||
|
WHERE
|
||||||
|
f.ISDELETE = '0'
|
||||||
|
AND f.CLASSCURRICULUM_ID = #{CLASSCURRICULUM_ID}
|
||||||
|
<if test="PARENT_ID != null and PARENT_ID != ''">
|
||||||
|
AND c.PARENT_ID = #{PARENT_ID}
|
||||||
|
</if>
|
||||||
|
ORDER BY
|
||||||
|
c.SORT
|
||||||
|
</select>
|
||||||
|
</mapper>
|
Loading…
Reference in New Issue