| | |
| | | } |
| | | //数据插入 |
| | | //课程插入 |
| | | List<List<ThCourse>> splitSaveCourseList = ListUtil.split(saveCourseList, 500); |
| | | List<List<ThCourse>> splitSaveCourseList = ListUtil.split(saveCourseList, 200); |
| | | for(List<ThCourse> courseList : splitSaveCourseList){ |
| | | courseService.insertBatch(courseList); |
| | | } |
| | | //修改课程 |
| | | List<List<ThCourse>> splitUpdateCourseList = ListUtil.split(updateCourseList, 500); |
| | | List<List<ThCourse>> splitUpdateCourseList = ListUtil.split(updateCourseList, 200); |
| | | for(List<ThCourse> courseList : splitUpdateCourseList){ |
| | | courseService.updateBatch(courseList); |
| | | } |
| | | //插入章节 |
| | | List<List<ThCourseChapter>> splitSaveChapterList = ListUtil.split(saveCourseChapterList, 500); |
| | | List<List<ThCourseChapter>> splitSaveChapterList = ListUtil.split(saveCourseChapterList, 200); |
| | | for(List<ThCourseChapter> chapterList : splitSaveChapterList){ |
| | | courseChapterService.insertBatch(chapterList); |
| | | } |
| | | //修改章节 |
| | | List<List<ThCourseChapter>> splitUpdateChapterList = ListUtil.split(updateCourseChapterList, 500); |
| | | List<List<ThCourseChapter>> splitUpdateChapterList = ListUtil.split(updateCourseChapterList, 200); |
| | | for(List<ThCourseChapter> chapterList : splitUpdateChapterList){ |
| | | courseChapterService.updateBatch(chapterList); |
| | | } |
| | |
| | | } |
| | | } |
| | | //学生表新增 |
| | | List<List<ThStudent>> splitSaveStudentList = ListUtil.split(saveSudentList, 500); |
| | | List<List<ThStudent>> splitSaveStudentList = ListUtil.split(saveSudentList, 200); |
| | | for (List<ThStudent> studentList : splitSaveStudentList) { |
| | | studentService.insertBatch(studentList); |
| | | } |
| | | //学生表更新 |
| | | List<List<ThStudent>> splitUpdateStudentList = ListUtil.split(updateStudentList, 500); |
| | | List<List<ThStudent>> splitUpdateStudentList = ListUtil.split(updateStudentList, 200); |
| | | for (List<ThStudent> studentList : splitUpdateStudentList) { |
| | | studentService.updateBatch(studentList); |
| | | } |
| | | //学生关联班级表 |
| | | List<List<ThStudentBatch>> splitSaveThStudentBatchList = ListUtil.split(saveThStudentBatchList, 500); |
| | | List<List<ThStudentBatch>> splitSaveThStudentBatchList = ListUtil.split(saveThStudentBatchList, 200); |
| | | for (List<ThStudentBatch> studentBatcheList : splitSaveThStudentBatchList) { |
| | | studentBatchService.insertBatch(studentBatcheList); |
| | | } |
| | | |
| | | //学生关联班级表修改 |
| | | List<List<ThStudentBatch>> splitUpdateThStudentBatchList = ListUtil.split(updateThStudentBatchList, 500); |
| | | List<List<ThStudentBatch>> splitUpdateThStudentBatchList = ListUtil.split(updateThStudentBatchList, 200); |
| | | for (List<ThStudentBatch> studentBatcheList : splitUpdateThStudentBatchList) { |
| | | studentBatchService.updateBatch(studentBatcheList); |
| | | } |
| | |
| | | } |
| | | |
| | | //插入章节 |
| | | List<List<ThBatchCourseChapter>> splitSaveBatchCourseChapterList = ListUtil.split(saveBatchCourseChapterList, 500); |
| | | List<List<ThBatchCourseChapter>> splitSaveBatchCourseChapterList = ListUtil.split(saveBatchCourseChapterList, 200); |
| | | for (List<ThBatchCourseChapter> chapterList : splitSaveBatchCourseChapterList) { |
| | | batchCourseChapterService.insertBatch(chapterList); |
| | | } |
| | | //修改章节 |
| | | List<List<ThBatchCourseChapter>> splitUpdateBatchCourseChapterList = ListUtil.split(updateBatchCourseChapterList, 500); |
| | | List<List<ThBatchCourseChapter>> splitUpdateBatchCourseChapterList = ListUtil.split(updateBatchCourseChapterList, 200); |
| | | for (List<ThBatchCourseChapter> chapterList : splitUpdateBatchCourseChapterList) { |
| | | batchCourseChapterService.updateBatch(chapterList); |
| | | } |
| | |
| | | } |
| | | } |
| | | //插入学习记录 |
| | | List<List<ThStudyDetail>> splitSaveDetailList = ListUtil.split(saveStudyDetailList, 500); |
| | | List<List<ThStudyDetail>> splitSaveDetailList = ListUtil.split(saveStudyDetailList, 200); |
| | | for (List<ThStudyDetail> thStudyDetails : splitSaveDetailList) { |
| | | studyDetailService.insertBatch(thStudyDetails); |
| | | } |
| | | //修改学习记录 |
| | | List<List<ThStudyDetail>> splitUpdateDetailList = ListUtil.split(updateStudyDetailList, 500); |
| | | List<List<ThStudyDetail>> splitUpdateDetailList = ListUtil.split(updateStudyDetailList, 200); |
| | | for (List<ThStudyDetail> thStudyDetails : splitUpdateDetailList) { |
| | | studyDetailService.updateBatch(thStudyDetails); |
| | | } |
| | | //插入认证记录 |
| | | List<List<ThStudyAuth>> splitSaveAuthList = ListUtil.split(saveStudyAuthList, 500); |
| | | List<List<ThStudyAuth>> splitSaveAuthList = ListUtil.split(saveStudyAuthList, 200); |
| | | for (List<ThStudyAuth> thStudyAuths : splitSaveAuthList) { |
| | | studyAuthService.insetBatch(thStudyAuths); |
| | | } |
| | | //插入学习轨迹 |
| | | List<List<ThStudyTrack>> splitSaveTrackList = ListUtil.split(saveStudyTrackList, 500); |
| | | List<List<ThStudyTrack>> splitSaveTrackList = ListUtil.split(saveStudyTrackList, 200); |
| | | for (List<ThStudyTrack> thStudyTracks : splitSaveTrackList) { |
| | | studyTrackService.insertBatch(thStudyTracks); |
| | | } |
| | | //修改学生完成状态 |
| | | List<List<ThStudentBatch>> splitUpdateThStudentBatchList = ListUtil.split(updateStudentBatchList, 500); |
| | | List<List<ThStudentBatch>> splitUpdateThStudentBatchList = ListUtil.split(updateStudentBatchList, 200); |
| | | for (List<ThStudentBatch> studentBatcheList : splitUpdateThStudentBatchList) { |
| | | studentBatchService.updateBatch(studentBatcheList); |
| | | } |