|
|
@@ -320,8 +320,14 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
|
|
|
String fullName = iCourseBusinessService.queryFullName(queryBo);
|
|
|
if(Validator.isNotEmpty(fullName)){
|
|
|
if(fullName.equals("继续教育二级建造师")||fullName.equals("继续教育二级造价师")){
|
|
|
- if(Validator.isNotEmpty(courseSectionVo.getDurationTime())){
|
|
|
- Integer num = (int)Math.ceil(courseSectionVo.getDurationTime()/(15*60));
|
|
|
+ if(Validator.isNotEmpty(courseSectionVo.getDurationTime())||Validator.isNotEmpty(bo.getVideoCurrentTime())){
|
|
|
+ Long videoTime = 0L;
|
|
|
+ if(Validator.isNotEmpty(courseSectionVo.getDurationTime())&&courseSectionVo.getDurationTime().longValue()>0){
|
|
|
+ videoTime = courseSectionVo.getDurationTime();
|
|
|
+ }else{
|
|
|
+ videoTime = bo.getVideoCurrentTime();
|
|
|
+ }
|
|
|
+ Integer num = (int)Math.ceil(videoTime.intValue()/(15*60));
|
|
|
UserPeriodQueryBo userPeriodQueryBo2 = new UserPeriodQueryBo();
|
|
|
userPeriodQueryBo2.setSectionId(bo.getSectionId());
|
|
|
userPeriodQueryBo2.setCourseId(bo.getCourseId());
|