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
4ecfe049
Commit
4ecfe049
authored
Aug 01, 2022
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
488294d7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
44 deletions
+0
-44
CheckServiceImpl.java
...n/amos/patrol/business/service/impl/CheckServiceImpl.java
+0
-44
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/CheckServiceImpl.java
View file @
4ecfe049
...
...
@@ -218,50 +218,6 @@ public class CheckServiceImpl implements ICheckService {
return
new
PageImpl
<>(
content
,
param
,
total
);
}
content
=
checkMapper
.
getCheckInfoNew
(
param
);
if
(!
CollectionUtils
.
isEmpty
(
content
))
{
Set
<
String
>
userIds
=
Sets
.
newHashSet
(
Lists
.
transform
(
content
,
CheckInfoVo:
:
getUserId
));
Set
<
String
>
deptIds
=
Sets
.
newHashSet
(
Lists
.
transform
(
content
,
CheckInfoVo:
:
getDepId
));
deptIds
.
remove
(
""
);
deptIds
.
remove
(
null
);
String
joinUserId
=
""
;
for
(
String
userId:
userIds
)
{
if
(!
ObjectUtils
.
isEmpty
(
userId
)){
joinUserId
=
joinUserId
+
userId
+
","
;
}
}
// List<AgencyUserModel> userModels = remoteSecurityService.listUserByUserIds( toke, product, appKey,joinUserId);
Map
<
String
,
String
>
deptMap
=
new
HashMap
<
String
,
String
>();
// if(!CollectionUtils.isEmpty(deptIds)){
// List<LinkedHashMap> deptList = remoteSecurityService.listDepartmentByDeptIds( toke, product, appKey,Joiner.on(",").join(deptIds));
// //deptMap = deptList.stream().collect(Collectors.toMap(DepartmentModel::getSequenceNbr, DepartmentModel::getDepartmentName));
//
// for (int i = 0; i < deptList.size(); i++) {
// deptMap.put(deptList.get(i).get("sequenceNbr").toString(), deptList.get(i).get("departmentName").toString());
// }
//
//
// }
// Map<String,String> userModelMap = userModels.stream().collect(Collectors.toMap(AgencyUserModel::getUserId,AgencyUserModel::getRealName ,(k1,k2)->k2));
Map
<
String
,
String
>
deptMapNew
=
deptMap
;
List
<
String
>
userNames
=
new
ArrayList
<>();
content
.
forEach
(
e
->
{
userNames
.
clear
();
List
<
String
>
userIds1
=
Arrays
.
asList
(
e
.
getUserId
().
split
(
","
));
for
(
String
userId
:
userIds1
){
FeignClientResult
result
=
jcsFeignClient
.
selectById
(
userId
);
Object
result1
=
result
.
getResult
();
String
personName
=
((
Map
<
String
,
Object
>)
result1
).
get
(
"personName"
).
toString
();
userNames
.
add
(
personName
);
}
userNames
.
remove
(
null
);
e
.
setUserName
(
Joiner
.
on
(
","
).
join
(
userNames
));
// e.setDepartmentName(deptMapNew.get(e.getDepId()));
});
}
return
new
PageImpl
<>(
content
,
param
,
total
);
}
...
...
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