he2802 před 3 roky
rodič
revize
b154aa19dc

+ 1 - 1
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());
         GoodsVo goodsVo = iGoodsService.selectDetail(bo.getGoodsId());
 
 
         if(goodsVo.getBusinessId().longValue()!=business.getId().longValue()){
         if(goodsVo.getBusinessId().longValue()!=business.getId().longValue()){
-            if(Validator.isNotEmpty(business7)&&goodsVo.getBusinessId().longValue()!=business7.getId().longValue()){
+            if(Validator.isEmpty(business7)||(Validator.isNotEmpty(business7)&&goodsVo.getBusinessId().longValue()!=business7.getId().longValue())){
                 return null;
                 return null;
             }
             }
         }
         }