mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-15 05:46:49 +08:00
在线课时长添加
This commit is contained in:
@@ -55,10 +55,9 @@ public class CourseContentServiceImpl implements ICourseContentService {
|
||||
if(StringUtils.isBlank(cc.getId())) {
|
||||
//新增的情况
|
||||
cc.setDeleted(false);
|
||||
if(exam.getTestDuration()==null) {
|
||||
exam.setTestDuration(0);
|
||||
if (cc.getDuration()==null){
|
||||
cc.setDuration(exam.getTestDuration());
|
||||
}
|
||||
cc.setDuration(exam.getTestDuration());
|
||||
//如果是没有目录的,并具是课程内容
|
||||
if(dto.getType()!=null && dto.getType()==10) {
|
||||
if(cc.getSortIndex()==1) {
|
||||
|
||||
Reference in New Issue
Block a user