|
|
|
@ -169,12 +169,19 @@ public class BasicdataWarehouseServiceImpl extends BaseServiceImpl<BasicdataWare
|
|
|
|
|
|
|
|
|
|
String defaultRoleId = DictBizCache.getValue(DictBizConstant.DEFAULT_MALL_ROLE_ID, DictBizConstant.DEFAULT_MALL_ROLE_ID); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(StringUtil.isBlank(defaultRoleId)){ |
|
|
|
|
defaultRoleId="1111"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
log.info(">>>>>>> 当前登录的人 {} 角色信息 {}",user.getAccount(),user.getRoleId()); |
|
|
|
|
// 最大的管理员
|
|
|
|
|
if (ObjectUtil.isEmpty(user.getRoleId())) { |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
log.info(">>>>1 {}",user.getRoleId()); |
|
|
|
|
log.info(">>>>2 {}",defaultRoleId); |
|
|
|
|
if (user.getRoleId().contains(defaultRoleId)) { |
|
|
|
|
|
|
|
|
|
// 当前这登录的用户为商场用户
|
|
|
|
@ -265,6 +272,7 @@ public class BasicdataWarehouseServiceImpl extends BaseServiceImpl<BasicdataWare
|
|
|
|
|
// 根据当前登陆人的信息和角色判断查询是所属仓库 还是服务仓库
|
|
|
|
|
try { |
|
|
|
|
BladeUser user = AuthUtil.getUser(); |
|
|
|
|
|
|
|
|
|
String json = redis.get(CacheNames.tenantKeyObj(user.getTenantId(), CacheNames.USER_WAREHOUSE_KEY, user.getUserId())); |
|
|
|
|
if (StringUtil.isBlank(json)) { |
|
|
|
|
List<BasicdataWarehouseEntity> myWarehouseList = getMyWarehouseList(); |
|
|
|
|