Browse Source

fix 修复

he2802 3 năm trước cách đây
mục cha
commit
bc8643ade5

+ 1 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/user/service/impl/UserStudyRecordServiceImpl.java

@@ -371,7 +371,7 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
                     lastVo.setStatus(1);
                 }
                 if(lastVo.getVideoCurrentTime().longValue()<=add.getVideoCurrentTime().longValue()){
-                    lastVo.setStudyDuration(lastVo.getStudyDuration()+(add.getVideoCurrentTime().longValue()-lastVo.getVideoCurrentTime().longValue()));
+                    lastVo.setStudyDuration(lastVo.getStudyDuration().longValue()+(add.getVideoCurrentTime().longValue()-lastVo.getVideoCurrentTime().longValue()));
                 }else{
                     lastVo.setStudyDuration(lastVo.getStudyDuration()+add.getStudyDuration());
                 }