Browse Source

fix 节历史

he2802 3 years ago
parent
commit
e810b4a35f

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

@@ -112,7 +112,7 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
         lqw.eq(bo.getModuleId() != null, UserStudyRecord::getModuleId, bo.getModuleId());
         lqw.orderByDesc(UserStudyRecord::getRecordId);
         UserStudyRecord last = this.getOne(lqw.last("limit 1"));
-        if(Validator.isNotEmpty(last)&&last.getStatus()==1){
+        if(Validator.isNotEmpty(last)&&Validator.isNotEmpty(last.getStatus())&&last.getStatus()==1){
             last = null;
         }
         return BeanUtil.toBean(last, UserStudyRecordVo.class);