mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-12 20:36:50 +08:00
Merge branch 'zcwy0704-llf' into dev0525
This commit is contained in:
@@ -53,12 +53,15 @@ public class CourseContentServiceImpl implements ICourseContentService {
|
|||||||
CourseAssess assess=dto.getAssess();
|
CourseAssess assess=dto.getAssess();
|
||||||
CourseExam exam=dto.getExam();
|
CourseExam exam=dto.getExam();
|
||||||
CourseHomeWork homework=dto.getHomework();
|
CourseHomeWork homework=dto.getHomework();
|
||||||
|
|
||||||
if(StringUtils.isBlank(cc.getId())) {
|
if(StringUtils.isBlank(cc.getId())) {
|
||||||
//新增的情况
|
//新增的情况
|
||||||
cc.setDeleted(false);
|
cc.setDeleted(false);
|
||||||
if (cc.getDuration()==null){
|
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) {
|
if(dto.getType()!=null && dto.getType()==10) {
|
||||||
|
|||||||
Reference in New Issue
Block a user