diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataWarehouseServiceImpl.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataWarehouseServiceImpl.java index faa55f97a..f9c84e03c 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataWarehouseServiceImpl.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataWarehouseServiceImpl.java @@ -166,6 +166,10 @@ public class BasicdataWarehouseServiceImpl extends BaseServiceImpl getMyWarehouseList() { BladeUser user = AuthUtil.getUser(); + if("000000".equals(user.getTenantId()) ){ + return null; + } + // 获取缓存中的仓库 List results = redis.get(CacheNames.tenantKeyObj(user.getTenantId(), CacheNames.USER_WAREHOUSE_OWN, user.getUserId())); if(ObjectUtil.isEmpty(results)){