多租户数据和无租户数据兼容
This commit is contained in:
@@ -833,7 +833,7 @@ public class DepotItemService {
|
||||
Object tenantIdO = request.getSession().getAttribute("tenantId");
|
||||
if(tenantIdO!=null){
|
||||
//多租户模式,租户id从当前用户获取
|
||||
tenantId=Long.valueOf(tenantId.toString());
|
||||
tenantId=Long.valueOf(tenantIdO.toString());
|
||||
} else {
|
||||
//无租户模式,租户id为-1
|
||||
tenantId=Long.valueOf(-1);
|
||||
|
||||
Reference in New Issue
Block a user