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
7d9c787c
Commit
7d9c787c
authored
Nov 15, 2023
by
H2T
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口返回内容匹配管控形式字典值
parent
85ae7579
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
PointServiceImpl.java
...n/amos/patrol/business/service/impl/PointServiceImpl.java
+10
-0
No files found.
amos-boot-system-tzs/amos-boot-module-tzspatrol/amos-boot-module-tzspatrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/PointServiceImpl.java
View file @
7d9c787c
...
...
@@ -1910,6 +1910,16 @@ public class PointServiceImpl implements IPointService {
content
.
forEach
(
e
->{
if
(
e
.
get
(
"id"
)!=
null
&&
!
StringUtils
.
isBlank
(
e
.
get
(
"id"
).
toString
())){
List
<
PointInputItemVo
>
inputItems
=
inputItemMapper
.
queryCustomInputItemByPointId
(
e
.
get
(
"id"
).
toString
());
//匹配管控形式字典
//查询管控字典值,并替换到返回值
HashMap
<
String
,
String
>
dictMap
=
new
HashMap
<>();
List
<
DictionarieValueModel
>
result
=
Systemctl
.
dictionarieClient
.
dictValues
(
formOfManagementAndControl
).
getResult
();
result
.
forEach
(
x
->
dictMap
.
put
(
x
.
getDictDataKey
(),
x
.
getDictDataValue
()));
inputItems
.
stream
().
peek
(
item
->{
if
(!
ObjectUtils
.
isEmpty
(
item
.
getInputClassify
())){
item
.
setInputClassify
(
dictMap
.
getOrDefault
(
item
.
getInputClassify
(),
"其他"
));
}
}).
collect
(
Collectors
.
toList
());
e
.
put
(
"equipIputDetailData"
,
inputItems
);
e
.
put
(
"equipIputDetailDataNum"
,
inputItems
!=
null
?
inputItems
.
size
():
0
);
}
...
...
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