Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄嘉阳
/
iot-platform-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
baa834f9
authored
Oct 10, 2023
by
huangjy
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
c6a49b9d
ec0c8ec5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
server-common/src/main/java/com/makeit/config/mybatis/tenant/DataScopeInterceptor.java
server-service/src/main/java/com/makeit/service/platform/auth/impl/PlatUserServiceImpl.java
server-common/src/main/java/com/makeit/config/mybatis/tenant/DataScopeInterceptor.java
View file @
baa834f9
...
@@ -55,9 +55,10 @@ public class DataScopeInterceptor extends JsqlParserSupport implements InnerInte
...
@@ -55,9 +55,10 @@ public class DataScopeInterceptor extends JsqlParserSupport implements InnerInte
}
}
String
[]
orgIds
=
dataScope
.
split
(
Const
.
COMMON_SPLIT
);
String
[]
orgIds
=
dataScope
.
split
(
Const
.
COMMON_SPLIT
);
List
<
String
>
orgIdList
=
Arrays
.
asList
(
orgIds
);
List
<
String
>
orgIdList
=
Arrays
.
asList
(
orgIds
);
if
(
orgIdList
.
contains
(
tenantId
)){
//2023年10月10日 如果是租户级别的组织,也只能看到本层
return
;
// if(orgIdList.contains(tenantId)){
}
// return;
// }
String
tableName
=
((
Table
)
((
PlainSelect
)
select
.
getSelectBody
()).
getFromItem
()).
getName
();
String
tableName
=
((
Table
)
((
PlainSelect
)
select
.
getSelectBody
()).
getFromItem
()).
getName
();
//没有org_id 表字段跳过
//没有org_id 表字段跳过
List
<
TableFieldInfo
>
fieldInfoList
=
TableInfoHelper
.
getTableInfo
(
tableName
).
getFieldList
();
List
<
TableFieldInfo
>
fieldInfoList
=
TableInfoHelper
.
getTableInfo
(
tableName
).
getFieldList
();
...
...
server-service/src/main/java/com/makeit/service/platform/auth/impl/PlatUserServiceImpl.java
View file @
baa834f9
...
@@ -268,7 +268,7 @@ public class PlatUserServiceImpl extends ServiceImpl<PlatUserMapper, PlatUser>
...
@@ -268,7 +268,7 @@ public class PlatUserServiceImpl extends ServiceImpl<PlatUserMapper, PlatUser>
@Transactional
@Transactional
@Override
@Override
public
void
edit
(
PlatUserDTOVO
dto
)
{
public
void
edit
(
PlatUserDTOVO
dto
)
{
dto
.
setAccount
(
null
);
//
dto.setAccount(null);
check
(
dto
);
check
(
dto
);
PlatUser
user
=
BeanDtoVoUtils
.
convert
(
dto
,
PlatUser
.
class
);
PlatUser
user
=
BeanDtoVoUtils
.
convert
(
dto
,
PlatUser
.
class
);
user
.
setIsTenant
(
CommonEnum
.
YES
.
getValue
());
user
.
setIsTenant
(
CommonEnum
.
YES
.
getValue
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment