|
@@ -373,8 +373,6 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
|
|
|
//如果没有历史数据或者之前播放时长比现在晚,或者携带照片则新增观看记录
|
|
|
this.save(add);
|
|
|
}else{
|
|
|
- lastVo.setVideoCurrentTime(add.getVideoCurrentTime());
|
|
|
- lastVo.setEndTime(add.getEndTime());
|
|
|
if(Validator.isNotEmpty(add.getStatus())&&add.getStatus()==1){
|
|
|
lastVo.setStatus(1);
|
|
|
}
|
|
@@ -383,6 +381,8 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
|
|
|
}else{
|
|
|
lastVo.setStudyDuration(lastVo.getStudyDuration().longValue()+add.getStudyDuration().longValue());
|
|
|
}
|
|
|
+ lastVo.setVideoCurrentTime(add.getVideoCurrentTime());
|
|
|
+ lastVo.setEndTime(add.getEndTime());
|
|
|
|
|
|
UserStudyRecord update = BeanUtil.toBean(lastVo, UserStudyRecord.class);
|
|
|
update.setUpdateTime(DateUtils.getNowTime());
|