he2802 vor 2 Jahren
Ursprung
Commit
0a04ba4c30

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

@@ -881,7 +881,9 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
 
     private SectionStudyRecordVo mergeToData(UserBankRecord bankVo){
         SectionStudyRecordVo vo = BeanUtil.toBean(bankVo, SectionStudyRecordVo.class);
-        vo.setLearning((long)bankVo.getReportStatus());
+        if(Validator.isNotEmpty(bankVo.getReportStatus())){
+            vo.setLearning((long)bankVo.getReportStatus());
+        }
         vo.setExamType(bankVo.getType());
         return vo;
     }