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
6cbb86c3
Commit
6cbb86c3
authored
Oct 08, 2021
by
xixinzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
ef9a8f1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
PlanServiceImpl.java
...os/supervision/business/service/impl/PlanServiceImpl.java
+7
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/service/impl/PlanServiceImpl.java
View file @
6cbb86c3
...
...
@@ -31,6 +31,8 @@ import org.springframework.stereotype.Service;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.util.ObjectUtils
;
import
java.time.format.DateTimeFormatter
;
import
java.time.temporal.TemporalAccessor
;
import
java.util.*
;
import
java.util.stream.Collectors
;
...
...
@@ -94,12 +96,17 @@ public class PlanServiceImpl implements IPlanService {
Set
<
String
>
distinctUserIds
=
new
HashSet
<>(
Arrays
.
asList
(
temp
));
List
<
AgencyUserModel
>
userModels
=
remoteSecurityService
.
listUserByUserIds
(
Joiner
.
on
(
","
).
join
(
distinctUserIds
));
Map
<
String
,
String
>
userIdNameMap
=
userModels
.
stream
().
collect
(
Collectors
.
toMap
(
AgencyUserModel:
:
getUserId
,
AgencyUserModel:
:
getRealName
));
DateTimeFormatter
dateTimeFormatter
=
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd HH:mm:ss"
);
content
.
forEach
(
c
->
{
this
.
buildUserName
(
c
,
"createBy"
,
userIdNameMap
);
if
(
c
.
containsKey
(
"status"
))
{
String
finishStatusDesc
=
PlanStatusEnum
.
getName
(
Integer
.
parseInt
(
c
.
get
(
"status"
).
toString
()));
c
.
put
(
"statusDesc"
,
finishStatusDesc
);
}
if
(
c
.
containsKey
(
"createDate"
))
{
String
createTime
=
dateTimeFormatter
.
format
((
TemporalAccessor
)
c
.
get
(
"createDate"
));
c
.
put
(
"createDateStr"
,
createTime
);
}
});
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