Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
7df77064
Commit
7df77064
authored
Nov 18, 2024
by
maoying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改人员接口去除权限过滤
parent
e97eb0f7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
3 deletions
+20
-3
OrgUsrMapper.java
...join/amos/boot/module/common/api/mapper/OrgUsrMapper.java
+2
-0
OrgUsrMapper.xml
...ule-common-api/src/main/resources/mapper/OrgUsrMapper.xml
+9
-0
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+9
-3
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/mapper/OrgUsrMapper.java
View file @
7df77064
...
...
@@ -121,6 +121,8 @@ public interface OrgUsrMapper extends BaseMapper<OrgUsr> {
OrgUsr
queryBySequenceNbr
(
@Param
(
"parentId"
)
String
parentId
);
OrgUsr
queryBySeqNbr
(
@Param
(
"sequenceNbr"
)
String
sequenceNbr
);
List
<
OrgUsr
>
companyDeptListWithPersonCount
(
Map
<
String
,
Object
>
param
);
List
<
OrgUsr
>
companyListWithPersonCount
(
Map
<
String
,
Object
>
param
);
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/OrgUsrMapper.xml
View file @
7df77064
...
...
@@ -996,6 +996,15 @@
AND sequence_nbr = #{parentId}
</if>
</select>
<select
id=
"queryBySeqNbr"
resultType=
"com.yeejoin.amos.boot.module.common.api.entity.OrgUsr"
>
SELECT *
FROM cb_org_usr
WHERE is_delete = 0
<if
test=
"sequenceNbr != null and sequenceNbr != ''"
>
AND sequence_nbr = #{sequenceNbr}
</if>
</select>
<select
id=
"companyTreeByUserAndType"
resultType=
"com.yeejoin.amos.boot.module.common.api.entity.OrgUsr"
>
SELECT
*
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/OrgUsrServiceImpl.java
View file @
7df77064
...
...
@@ -2952,12 +2952,18 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
}
public
String
getCompany
(
OrgUsr
userDto
){
if
(
userDto
.
getBizOrgType
().
equals
(
"COMPANY"
)){
if
(
ObjectUtils
.
isEmpty
(
userDto
)){
return
""
;
}
if
(
"COMPANY"
.
equals
(
userDto
.
getBizOrgType
())){
return
userDto
.
getBizOrgCode
();
}
else
{
// 权限处理
PermissionInterceptorContext
.
setDataAuthRule
(
authKey
);
OrgUsr
bizOrg
=
orgUsrMapper
.
queryBySequenceNbr
(
userDto
.
getParentId
());
// PermissionInterceptorContext.setDataAuthRule(authKey);
String
seqNbr
=
userDto
.
getParentId
();
logger
.
info
(
"queryBySeqNbr:---------------"
,
seqNbr
);
OrgUsr
bizOrg
=
orgUsrMapper
.
queryBySeqNbr
(
seqNbr
);
return
getCompany
(
bizOrg
);
}
}
...
...
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