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
7d1f1741
Commit
7d1f1741
authored
Jul 12, 2021
by
gaodongdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
3122b373
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+9
-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 @
7d1f1741
...
...
@@ -858,13 +858,18 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
}
public
List
<
CompanyPerson
>
returnCompanyPerson
(
List
<
Long
>
ids
)
{
if
(
ids
==
null
)
return
null
;
if
(
ObjectUtils
.
isEmpty
(
ids
)
)
return
null
;
return
ids
.
stream
().
map
(
m
->
{
OrgUsr
org
=
getById
(
m
);
if
(
ObjectUtils
.
isEmpty
(
org
))
{
return
null
;
}
CompanyPerson
company
=
new
CompanyPerson
();
BeanUtils
.
copyProperties
(
org
,
company
);
company
.
setPersons
(
this
.
queryForListByParentIdAndOrgType
(
org
.
getSequenceNbr
(),
OrgPersonEnum
.
人员
.
getKey
()));
return
company
;
}).
filter
(
c
->
{
return
c
!=
null
;
}).
collect
(
Collectors
.
toList
());
}
...
...
@@ -874,6 +879,9 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
public
OrgUsrDto
getOrg
(
String
amosUserId
)
{
OrgUsrDto
person
=
queryForListByParentIdAndOrgType
(
amosUserId
);
if
(
ObjectUtils
.
isEmpty
(
person
))
{
return
null
;
}
return
this
.
queryBySeq
(
Long
.
valueOf
(
person
.
getParentId
()));
}
...
...
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