Ver Fonte

修改逻辑

hgw há 3 anos atrás
pai
commit
ef26f1afa6

+ 1 - 1
mec-biz/src/main/java/com/ym/mec/biz/service/impl/PlatformServeServiceImpl.java

@@ -93,7 +93,7 @@ public class PlatformServeServiceImpl extends ServiceImpl<PlatformServeDao, Plat
 
         TenantProductInfo productInfo = tenantProductInfoService.getOne(new QueryWrapper<TenantProductInfo>()
                 .eq("serve_id_", id));
-        if(Objects.isNull(productInfo)){
+        if(Objects.nonNull(productInfo)){
             throw new BizException("该服务已关联机构无法删除!");
         }