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
1717c96c
Commit
1717c96c
authored
Jun 20, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
336b6fbc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+13
-1
No files found.
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 @
1717c96c
...
@@ -1442,7 +1442,19 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -1442,7 +1442,19 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
@Override
@Override
public
List
<
OrgMenuDto
>
companyTreeByUserAndType
(
ReginParams
reginParams
,
String
type
)
{
public
List
<
OrgMenuDto
>
companyTreeByUserAndType
(
ReginParams
reginParams
,
String
type
)
{
Map
<
String
,
Object
>
param
=
new
HashMap
<>();
Map
<
String
,
Object
>
param
=
new
HashMap
<>();
param
.
put
(
"bizOrgCode"
,
reginParams
.
getPersonIdentity
().
getBizOrgCode
());
String
bizOrgCode
=
reginParams
.
getPersonIdentity
().
getBizOrgCode
();
if
(
StringUtils
.
isNotEmpty
(
type
)
&&
type
.
equals
(
"COMPANY"
)){
//查询当前登录人所属单位/部门
OrgUsr
orgUsr
=
orgUsrMapper
.
selectById
(
reginParams
.
getPersonIdentity
().
getCompanyId
());
//判断登陆人是否已经是顶级节点单位
if
(
orgUsr
.
getParentId
()
!=
null
){
orgUsr
=
this
.
selectParentOrgUsr
(
orgUsr
);
bizOrgCode
=
orgUsr
.
getBizOrgCode
()
!=
null
?
orgUsr
.
getBizOrgCode
()
:
reginParams
.
getPersonIdentity
().
getBizOrgCode
();
}
}
param
.
put
(
"bizOrgCode"
,
bizOrgCode
);
param
.
put
(
"type"
,
type
);
param
.
put
(
"type"
,
type
);
List
<
OrgUsr
>
list
=
orgUsrMapper
.
companyTreeByUserAndType
(
param
);
List
<
OrgUsr
>
list
=
orgUsrMapper
.
companyTreeByUserAndType
(
param
);
return
buildTreeParallel
(
list
);
return
buildTreeParallel
(
list
);
...
...
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