he2802 2 éve
szülő
commit
44cc29863a

+ 2 - 2
zhongzheng-system/src/main/java/com/zhongzheng/modules/grade/service/impl/UserPeriodServiceImpl.java

@@ -511,7 +511,7 @@ public class UserPeriodServiceImpl extends ServiceImpl<UserPeriodMapper, UserPer
         GoodsVo goodsVo = iGoodsService.selectDetail(bo.getGoodsId());
 
         if(goodsVo.getBusinessId().longValue()!=business.getId().longValue()){
-            if(Validator.isNotEmpty(business7.getId())&&goodsVo.getBusinessId().longValue()!=business7.getId().longValue()){
+            if(Validator.isNotEmpty(business7)&&goodsVo.getBusinessId().longValue()!=business7.getId().longValue()){
                 return null;
             }
         }
@@ -523,7 +523,7 @@ public class UserPeriodServiceImpl extends ServiceImpl<UserPeriodMapper, UserPer
         if(goodsVo.getBusinessId().longValue()==business.getId().longValue()){
             studyRec.setCourseType(5);
         }
-        if(Validator.isNotEmpty(business7.getId())&&goodsVo.getBusinessId().longValue()==business7.getId().longValue()){
+        if(Validator.isNotEmpty(business7)&&goodsVo.getBusinessId().longValue()==business7.getId().longValue()){
             studyRec.setCourseType(17);
         }
         studyRec.setCourseName(goodsVo.getGoodsName());