创建在线课时的问题修改

This commit is contained in:
zhaolongfei
2024-07-05 09:17:06 +08:00
parent 973afb94b4
commit 88158e7ebf

View File

@@ -51,12 +51,15 @@ public class CourseContentServiceImpl implements ICourseContentService {
CourseAssess assess=dto.getAssess();
CourseExam exam=dto.getExam();
CourseHomeWork homework=dto.getHomework();
if(StringUtils.isBlank(cc.getId())) {
//新增的情况
cc.setDeleted(false);
if (cc.getDuration()==null){
cc.setDuration(exam.getTestDuration()*60);
if (exam != null){
cc.setDuration(exam.getTestDuration()*60);
}else {
cc.setDuration(0);
}
}
//如果是没有目录的,并具是课程内容
if(dto.getType()!=null && dto.getType()==10) {