|
@@ -270,7 +270,7 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
|
|
|
queryBo.setChapterId(bo.getChapterId());
|
|
|
queryBo.setSectionId(bo.getSectionId());
|
|
|
UserStudyRecordVo lastVo = queryLast(queryBo);
|
|
|
- if(Validator.isEmpty(lastVo)||lastVo.getVideoCurrentTime().longValue()>add.getVideoCurrentTime().longValue()){
|
|
|
+ if(Validator.isEmpty(lastVo)||Validator.isEmpty(lastVo.getVideoCurrentTime())||lastVo.getVideoCurrentTime().longValue()>add.getVideoCurrentTime().longValue()){
|
|
|
//如果没有历史数据或者之前播放时长比现在晚,则新增观看记录
|
|
|
this.save(add);
|
|
|
}else{
|