|
@@ -1,6 +1,7 @@
|
|
|
package com.zhongzheng.modules.course.service.impl;
|
|
package com.zhongzheng.modules.course.service.impl;
|
|
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
|
|
+import cn.hutool.core.lang.Validator;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
|
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
|
|
import com.zhongzheng.common.utils.DateUtils;
|
|
import com.zhongzheng.common.utils.DateUtils;
|
|
@@ -163,8 +164,9 @@ public class CourseChapterSectionServiceImpl extends ServiceImpl<CourseChapterSe
|
|
|
courseMenuVo.setAudit(1L);
|
|
courseMenuVo.setAudit(1L);
|
|
|
}
|
|
}
|
|
|
Integer learning = baseMapper.learningExamCheck(0L, courseMenuVo.getGradeId(), bo.getUserId(), bo.getModuleId(), bo.getChapterId(), courseMenuVo.getTypeId());
|
|
Integer learning = baseMapper.learningExamCheck(0L, courseMenuVo.getGradeId(), bo.getUserId(), bo.getModuleId(), bo.getChapterId(), courseMenuVo.getTypeId());
|
|
|
-
|
|
|
|
|
- courseMenuVo.setLearning(new Long(learning));
|
|
|
|
|
|
|
+ if(Validator.isNotEmpty(learning)){
|
|
|
|
|
+ courseMenuVo.setLearning(new Long(learning));
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|