|
|
@ -725,12 +725,14 @@ public class SeCourseController extends JeecgController<SeCourse, ISeCourseServi |
|
|
|
public void classtoknow(String id) { |
|
|
|
public void classtoknow(String id) { |
|
|
|
SeCourse seCourse = seCourseService.getById(id); |
|
|
|
SeCourse seCourse = seCourseService.getById(id); |
|
|
|
SeKonw seKonw = new SeKonw(); |
|
|
|
SeKonw seKonw = new SeKonw(); |
|
|
|
|
|
|
|
seKonw.setId(id); |
|
|
|
seKonw.setName(seCourse.getName()); |
|
|
|
seKonw.setName(seCourse.getName()); |
|
|
|
seKonw.setCode("课程:"+seCourse.getCode()); |
|
|
|
seKonw.setCode("课程:"+seCourse.getCode()); |
|
|
|
//这里的数据自数据字典cck其中1代表的是课程表
|
|
|
|
//这里的数据自数据字典cck其中1代表的是课程表
|
|
|
|
seKonw.setKnowfrom("1"); |
|
|
|
seKonw.setKnowfrom("1"); |
|
|
|
seKonw.setFromid(id); |
|
|
|
seKonw.setFromid(id); |
|
|
|
seKonw.setCourseid(id); |
|
|
|
seKonw.setCourseid(id); |
|
|
|
|
|
|
|
seKonw.setColor("rgba(58, 244, 142, 1)"); |
|
|
|
seKonwService.save(seKonw); |
|
|
|
seKonwService.save(seKonw); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
@ -750,12 +752,14 @@ public class SeCourseController extends JeecgController<SeCourse, ISeCourseServi |
|
|
|
List<SeChapter> chapterList = seChapterMapper.selectList(queryWrapper); |
|
|
|
List<SeChapter> chapterList = seChapterMapper.selectList(queryWrapper); |
|
|
|
for (int i=0;i<chapterList.size();i++){ |
|
|
|
for (int i=0;i<chapterList.size();i++){ |
|
|
|
SeKonw seKonw = new SeKonw(); |
|
|
|
SeKonw seKonw = new SeKonw(); |
|
|
|
|
|
|
|
seKonw.setId(chapterList.get(i).getId()); |
|
|
|
seKonw.setName(chapterList.get(i).getName()); |
|
|
|
seKonw.setName(chapterList.get(i).getName()); |
|
|
|
//这里的数据自数据字典cck其中2代表的是章节表
|
|
|
|
//这里的数据自数据字典cck其中2代表的是章节表
|
|
|
|
seKonw.setKnowfrom("2"); |
|
|
|
seKonw.setKnowfrom("2"); |
|
|
|
seKonw.setInfo("来自课程:"+seCourse.getName()); |
|
|
|
seKonw.setInfo("来自课程:"+seCourse.getName()); |
|
|
|
seKonw.setFromid(chapterList.get(i).getId()); |
|
|
|
seKonw.setFromid(chapterList.get(i).getId()); |
|
|
|
seKonw.setCourseid(id); |
|
|
|
seKonw.setCourseid(id); |
|
|
|
|
|
|
|
seKonw.setColor("rgba(58, 244, 142, 1)"); |
|
|
|
seKonwService.save(seKonw); |
|
|
|
seKonwService.save(seKonw); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -792,7 +796,6 @@ public class SeCourseController extends JeecgController<SeCourse, ISeCourseServi |
|
|
|
//这里的数据自数据字典cck其中1代表的是课程表
|
|
|
|
//这里的数据自数据字典cck其中1代表的是课程表
|
|
|
|
seKonwRelationshipMain.setPerFrom("1"); |
|
|
|
seKonwRelationshipMain.setPerFrom("1"); |
|
|
|
seKonwRelationshipMain.setPerName(seCourse.getName()); |
|
|
|
seKonwRelationshipMain.setPerName(seCourse.getName()); |
|
|
|
System.out.println(seCourse.getName()); |
|
|
|
|
|
|
|
seKonwRelationshipMain.setPerKowId(id); |
|
|
|
seKonwRelationshipMain.setPerKowId(id); |
|
|
|
seKonwRelationshipMain.setPerColor("rgba(254, 241, 0, 1)"); |
|
|
|
seKonwRelationshipMain.setPerColor("rgba(254, 241, 0, 1)"); |
|
|
|
//这里的数据自数据字典cck其中2代表的是章节表
|
|
|
|
//这里的数据自数据字典cck其中2代表的是章节表
|
|
|
@ -800,6 +803,7 @@ public class SeCourseController extends JeecgController<SeCourse, ISeCourseServi |
|
|
|
seKonwRelationshipMain.setNextName(chapterList.get(i).getName()); |
|
|
|
seKonwRelationshipMain.setNextName(chapterList.get(i).getName()); |
|
|
|
seKonwRelationshipMain.setNextKnowId(chapterList.get(i).getId()); |
|
|
|
seKonwRelationshipMain.setNextKnowId(chapterList.get(i).getId()); |
|
|
|
seKonwRelationshipMain.setNextColor("rgba(10, 138, 244, 1)"); |
|
|
|
seKonwRelationshipMain.setNextColor("rgba(10, 138, 244, 1)"); |
|
|
|
|
|
|
|
seKonwRelationshipMain.setCourseid(id); |
|
|
|
seKonwRelationshipMainService.save(seKonwRelationshipMain); |
|
|
|
seKonwRelationshipMainService.save(seKonwRelationshipMain); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -808,7 +812,6 @@ public class SeCourseController extends JeecgController<SeCourse, ISeCourseServi |
|
|
|
|
|
|
|
|
|
|
|
//用于在创建前知识点和后知识点的过程中创建章-节这一层的知识点关系
|
|
|
|
//用于在创建前知识点和后知识点的过程中创建章-节这一层的知识点关系
|
|
|
|
public void cretzhangjie(String id){ |
|
|
|
public void cretzhangjie(String id){ |
|
|
|
//开始组装课程-章结构知识点关系
|
|
|
|
|
|
|
|
SeCourse seCourse = seCourseService.getById(id); |
|
|
|
SeCourse seCourse = seCourseService.getById(id); |
|
|
|
QueryWrapper<SeChapter> queryWrapper = new QueryWrapper<>(); |
|
|
|
QueryWrapper<SeChapter> queryWrapper = new QueryWrapper<>(); |
|
|
|
queryWrapper.eq("courseid", id).eq("pid","0"); |
|
|
|
queryWrapper.eq("courseid", id).eq("pid","0"); |
|
|
@ -830,6 +833,7 @@ public class SeCourseController extends JeecgController<SeCourse, ISeCourseServi |
|
|
|
seKonwRelationshipMain.setNextName(chapterListj.get(j).getName()); |
|
|
|
seKonwRelationshipMain.setNextName(chapterListj.get(j).getName()); |
|
|
|
seKonwRelationshipMain.setNextKnowId(chapterListj.get(j).getId()); |
|
|
|
seKonwRelationshipMain.setNextKnowId(chapterListj.get(j).getId()); |
|
|
|
seKonwRelationshipMain.setNextColor("rgba(10, 138, 244, 1)"); |
|
|
|
seKonwRelationshipMain.setNextColor("rgba(10, 138, 244, 1)"); |
|
|
|
|
|
|
|
seKonwRelationshipMain.setCourseid(id); |
|
|
|
seKonwRelationshipMainService.save(seKonwRelationshipMain); |
|
|
|
seKonwRelationshipMainService.save(seKonwRelationshipMain); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -864,9 +868,11 @@ public class SeCourseController extends JeecgController<SeCourse, ISeCourseServi |
|
|
|
seKonwRelationshipMain.setPerKowId(knowcourseList.get(c).getUintid()); |
|
|
|
seKonwRelationshipMain.setPerKowId(knowcourseList.get(c).getUintid()); |
|
|
|
seKonwRelationshipMain.setPerColor("rgba(254, 241, 0, 1)"); |
|
|
|
seKonwRelationshipMain.setPerColor("rgba(254, 241, 0, 1)"); |
|
|
|
seKonwRelationshipMain.setNextFrom("3"); |
|
|
|
seKonwRelationshipMain.setNextFrom("3"); |
|
|
|
seKonwRelationshipMain.setNextName(knowcourseList.get(c).getKnow()); |
|
|
|
SeKonw seKonw =seKonwService.getById(knowcourseList.get(c).getKnowid()); |
|
|
|
seKonwRelationshipMain.setNextKnowId(knowcourseList.get(c).getKnowid()); |
|
|
|
seKonwRelationshipMain.setNextName(seKonw.getName()); |
|
|
|
|
|
|
|
seKonwRelationshipMain.setNextKnowId(seKonw.getId()); |
|
|
|
seKonwRelationshipMain.setNextColor("rgba(10, 138, 244, 1)"); |
|
|
|
seKonwRelationshipMain.setNextColor("rgba(10, 138, 244, 1)"); |
|
|
|
|
|
|
|
seKonwRelationshipMain.setCourseid(id); |
|
|
|
seKonwRelationshipMainService.save(seKonwRelationshipMain); |
|
|
|
seKonwRelationshipMainService.save(seKonwRelationshipMain); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|