he2802 2 лет назад
Родитель
Сommit
f187afab05

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

@@ -347,8 +347,8 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
 
 
         CourseSectionVo courseSectionVo =iCourseSectionService.queryById(bo.getSectionId());
-        if(Validator.isEmpty(courseSectionVo)||Validator.isEmpty(bo.getSectionId())){
-            throw new CustomException("节数据错误");
+        if(Validator.isEmpty(courseSectionVo)||Validator.isEmpty(bo.getSectionId())||Validator.isEmpty(courseSectionVo.getSectionType())){
+            throw new CustomException("节数据错误"+bo.getSectionId());
         }
         GoodsVo goodsVo = iGoodsService.queryById(bo.getGoodsId());
         String fullName;