mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-14 13:26:49 +08:00
课程AI设置优化
This commit is contained in:
@@ -490,6 +490,7 @@ public class CourseAuditApi extends ApiBaseController{
|
|||||||
.aiSet(course.getAiSet())
|
.aiSet(course.getAiSet())
|
||||||
.languageStatus(course.getLanguageStatus())
|
.languageStatus(course.getLanguageStatus())
|
||||||
.build() ;
|
.build() ;
|
||||||
|
if(cclist != null && !cclist.isEmpty()){
|
||||||
for (CourseContent cc : cclist) {
|
for (CourseContent cc : cclist) {
|
||||||
//筛选视频资源
|
//筛选视频资源
|
||||||
if(cc.getContentType() == 10 ){
|
if(cc.getContentType() == 10 ){
|
||||||
@@ -511,6 +512,7 @@ public class CourseAuditApi extends ApiBaseController{
|
|||||||
.build());
|
.build());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
boeaiCourseDto.setBoeaiVideoResourceReqList(videoList);
|
boeaiCourseDto.setBoeaiVideoResourceReqList(videoList);
|
||||||
boeaiCourseDto.setVideoCount(videoList.size());
|
boeaiCourseDto.setVideoCount(videoList.size());
|
||||||
|
|
||||||
|
|||||||
@@ -462,7 +462,7 @@ public class CourseServiceImpl implements ICourseService {
|
|||||||
rs.setCount(listByFilters2.size());
|
rs.setCount(listByFilters2.size());
|
||||||
rs.setPageSize(pageSize);
|
rs.setPageSize(pageSize);
|
||||||
rs.setList(paginate);
|
rs.setList(paginate);
|
||||||
if (!paginate.isEmpty()) {
|
if (paginate != null && !paginate.isEmpty()) {
|
||||||
log.info("-----KJB------ getCourse");
|
log.info("-----KJB------ getCourse");
|
||||||
for (Course course : paginate) {
|
for (Course course : paginate) {
|
||||||
this.getCourseFromKJB(course);
|
this.getCourseFromKJB(course);
|
||||||
|
|||||||
@@ -217,10 +217,12 @@ public class StudyCourseApi extends ApiBaseController{
|
|||||||
List<CourseSection> sectionlist=sectionService.getByCourseId(cid);
|
List<CourseSection> sectionlist=sectionService.getByCourseId(cid);
|
||||||
List<CourseTeacher> teachers=courseService.findTeachersByCourseId(cid);
|
List<CourseTeacher> teachers=courseService.findTeachersByCourseId(cid);
|
||||||
|
|
||||||
|
if(cclist!=null && !cclist.isEmpty()){
|
||||||
for (CourseContent cc : cclist) {
|
for (CourseContent cc : cclist) {
|
||||||
log.info("根据视频信息查询AI字幕数据:cc = " + cc.toString());
|
log.info("根据视频信息查询AI字幕数据:cc = " + cc.toString());
|
||||||
this.getVtt( cid , cc);
|
this.getVtt( cid , cc);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//获取教师的介绍信息,因为一门课程 的教师不会太多,所以这里简单直接遍历查询,后续再优化
|
//获取教师的介绍信息,因为一门课程 的教师不会太多,所以这里简单直接遍历查询,后续再优化
|
||||||
for(CourseTeacher ct : teachers) {
|
for(CourseTeacher ct : teachers) {
|
||||||
|
|||||||
Reference in New Issue
Block a user