From 144ae0fc5906c2dbd6d238e2c6cf67e297556a87 Mon Sep 17 00:00:00 2001 From: "pref_mail@163.com" Date: Sat, 14 Sep 2024 14:08:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0000000=E7=A7=9F?= =?UTF-8?q?=E6=88=B7=E8=8E=B7=E5=8F=96=E4=BB=93=E5=BA=93=E7=9A=84=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../basicdata/service/impl/BasicdataWarehouseServiceImpl.java | 4 ++++ 1 file changed, 4 insertions(+) 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)){