Browse Source

fix: 增加000000租户获取仓库的判断

dist.1.3.0
pref_mail@163.com 4 months ago
parent
commit
144ae0fc59
  1. 4
      blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataWarehouseServiceImpl.java

4
blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataWarehouseServiceImpl.java

@ -166,6 +166,10 @@ public class BasicdataWarehouseServiceImpl extends BaseServiceImpl<BasicdataWare
public List<BasicdataWarehouseEntity> getMyWarehouseList() { public List<BasicdataWarehouseEntity> getMyWarehouseList() {
BladeUser user = AuthUtil.getUser(); BladeUser user = AuthUtil.getUser();
if("000000".equals(user.getTenantId()) ){
return null;
}
// 获取缓存中的仓库 // 获取缓存中的仓库
List<BasicdataWarehouseEntity> results = redis.get(CacheNames.tenantKeyObj(user.getTenantId(), CacheNames.USER_WAREHOUSE_OWN, user.getUserId())); List<BasicdataWarehouseEntity> results = redis.get(CacheNames.tenantKeyObj(user.getTenantId(), CacheNames.USER_WAREHOUSE_OWN, user.getUserId()));
if(ObjectUtil.isEmpty(results)){ if(ObjectUtil.isEmpty(results)){

Loading…
Cancel
Save