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
c0cf4e54
Commit
c0cf4e54
authored
Oct 25, 2023
by
litengwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_patrol' into develop_tzs_patrol
parents
71de67e8
b8c747f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
InputItemServiceImpl.java
...os/patrol/business/service/impl/InputItemServiceImpl.java
+13
-1
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/InputItemServiceImpl.java
View file @
c0cf4e54
...
@@ -2,6 +2,8 @@ package com.yeejoin.amos.patrol.business.service.impl;
...
@@ -2,6 +2,8 @@ package com.yeejoin.amos.patrol.business.service.impl;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
import
com.yeejoin.amos.feign.systemctl.model.DictionarieValueModel
;
import
com.yeejoin.amos.patrol.business.dao.mapper.InputItemMapper
;
import
com.yeejoin.amos.patrol.business.dao.mapper.InputItemMapper
;
import
com.yeejoin.amos.patrol.business.dao.mapper.RouteMapper
;
import
com.yeejoin.amos.patrol.business.dao.mapper.RouteMapper
;
import
com.yeejoin.amos.patrol.business.dao.repository.IInputItemDao
;
import
com.yeejoin.amos.patrol.business.dao.repository.IInputItemDao
;
...
@@ -48,7 +50,8 @@ public class InputItemServiceImpl implements IInputItemService {
...
@@ -48,7 +50,8 @@ public class InputItemServiceImpl implements IInputItemService {
@Autowired
@Autowired
private
RemoteSecurityService
remoteSecurityService
;
private
RemoteSecurityService
remoteSecurityService
;
//管控形式 字典
private
static
final
String
formOfManagementAndControl
=
"riskForm"
;
/**
/**
...
@@ -250,6 +253,15 @@ public class InputItemServiceImpl implements IInputItemService {
...
@@ -250,6 +253,15 @@ public class InputItemServiceImpl implements IInputItemService {
param
.
put
(
"facilitiesType"
,
list1
);
param
.
put
(
"facilitiesType"
,
list1
);
}
}
List
<
PointInputItemVo
>
content
=
inputItemMapper
.
queryCustomInputItem
(
param
);
List
<
PointInputItemVo
>
content
=
inputItemMapper
.
queryCustomInputItem
(
param
);
//查询管控字典值,并替换到返回值
HashMap
<
String
,
String
>
dictMap
=
new
HashMap
<>();
List
<
DictionarieValueModel
>
result
=
Systemctl
.
dictionarieClient
.
dictValues
(
formOfManagementAndControl
).
getResult
();
result
.
forEach
(
x
->
dictMap
.
put
(
x
.
getDictDataKey
(),
x
.
getDictDataValue
()));
content
.
stream
().
peek
(
item
->{
if
(
StringUtils
.
isNotEmpty
(
item
.
getInputClassify
())){
item
.
setInputClassify
(
dictMap
.
getOrDefault
(
item
.
getInputClassify
(),
"其他"
));
}
}).
collect
(
Collectors
.
toList
());
return
content
;
return
content
;
}
}
...
...
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