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
5dc334d7
Commit
5dc334d7
authored
Oct 20, 2023
by
H2T
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
管控页面匹配字典值返回
parent
6ec982ef
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
+23
-0
InputItemController.java
.../amos/patrol/business/controller/InputItemController.java
+10
-0
InputItemVo.java
...java/com/yeejoin/amos/patrol/business/vo/InputItemVo.java
+12
-0
dbTemplate_input_item.xml
...ol/src/main/resources/db/mapper/dbTemplate_input_item.xml
+1
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/InputItemController.java
View file @
5dc334d7
...
@@ -6,6 +6,8 @@ import com.yeejoin.amos.boot.biz.common.bo.ReginParams;
...
@@ -6,6 +6,8 @@ import com.yeejoin.amos.boot.biz.common.bo.ReginParams;
import
com.yeejoin.amos.boot.biz.common.excel.ExcelUtil
;
import
com.yeejoin.amos.boot.biz.common.excel.ExcelUtil
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
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.repository.IInputItemDao
;
import
com.yeejoin.amos.patrol.business.dao.repository.IInputItemDao
;
import
com.yeejoin.amos.patrol.business.dao.repository.IPointInputItemDao
;
import
com.yeejoin.amos.patrol.business.dao.repository.IPointInputItemDao
;
...
@@ -89,6 +91,9 @@ public class InputItemController extends AbstractBaseController {
...
@@ -89,6 +91,9 @@ public class InputItemController extends AbstractBaseController {
private
static
final
String
ITEMTYPE
=
"选择,文本:"
;
private
static
final
String
ITEMTYPE
=
"选择,文本:"
;
//管控形式 字典
private
static
final
String
formOfManagementAndControl
=
"riskForm"
;
/**
/**
* 新加接口*****************************************************************************
* 新加接口*****************************************************************************
...
@@ -150,6 +155,9 @@ public class InputItemController extends AbstractBaseController {
...
@@ -150,6 +155,9 @@ public class InputItemController extends AbstractBaseController {
for
(
Map
<
String
,
String
>
map
:
allCategoryNameList
)
{
for
(
Map
<
String
,
String
>
map
:
allCategoryNameList
)
{
resultMap
.
put
(
map
.
get
(
"code"
),
map
.
get
(
"name"
));
resultMap
.
put
(
map
.
get
(
"code"
),
map
.
get
(
"name"
));
}
}
HashMap
<
String
,
String
>
dictMap
=
new
HashMap
<>();
List
<
DictionarieValueModel
>
result
=
Systemctl
.
dictionarieClient
.
dictValues
(
formOfManagementAndControl
).
getResult
();
result
.
forEach
(
x
->
dictMap
.
put
(
x
.
getDictDataKey
(),
x
.
getDictDataValue
()));
for
(
InputItemVo
inputItemVo
:
page
.
getContent
())
{
for
(
InputItemVo
inputItemVo
:
page
.
getContent
())
{
String
finalTypeName
=
""
;
String
finalTypeName
=
""
;
finalTypeName
=
StringUtils
.
isNotEmpty
(
inputItemVo
.
getCustomType
())?
"自定义巡检点"
:
""
;
finalTypeName
=
StringUtils
.
isNotEmpty
(
inputItemVo
.
getCustomType
())?
"自定义巡检点"
:
""
;
...
@@ -172,6 +180,8 @@ public class InputItemController extends AbstractBaseController {
...
@@ -172,6 +180,8 @@ public class InputItemController extends AbstractBaseController {
finalTypeName
=
facilitiesTypeName
;
finalTypeName
=
facilitiesTypeName
;
}
}
inputItemVo
.
setTypeName
(
finalTypeName
);
inputItemVo
.
setTypeName
(
finalTypeName
);
//匹配 管控形式 字典值
inputItemVo
.
setInputClassify
(
dictMap
.
getOrDefault
(
inputItemVo
.
getInputClassify
(),
null
));
}
}
return
CommonResponseUtil
.
success
(
page
);
return
CommonResponseUtil
.
success
(
page
);
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/vo/InputItemVo.java
View file @
5dc334d7
...
@@ -97,6 +97,11 @@ public class InputItemVo {
...
@@ -97,6 +97,11 @@ public class InputItemVo {
private
String
riskDesc
;
private
String
riskDesc
;
/**
/**
*管控形式
*/
private
String
inputClassify
;
/**
* 新加字段
* 新加字段
*
*
* */
* */
...
@@ -334,5 +339,12 @@ public class InputItemVo {
...
@@ -334,5 +339,12 @@ public class InputItemVo {
public
void
setRiskDesc
(
String
riskDesc
)
{
public
void
setRiskDesc
(
String
riskDesc
)
{
this
.
riskDesc
=
riskDesc
;
this
.
riskDesc
=
riskDesc
;
}
}
public
String
getInputClassify
()
{
return
inputClassify
;
}
public
void
setInputClassify
(
String
inputClassify
)
{
this
.
inputClassify
=
inputClassify
;
}
}
}
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_input_item.xml
View file @
5dc334d7
...
@@ -294,6 +294,7 @@
...
@@ -294,6 +294,7 @@
a.is_score,
a.is_score,
b.name as catalog_name,
b.name as catalog_name,
a.remark,
a.remark,
a.input_classify,
(CASE a.level
(CASE a.level
WHEN 1 THEN
WHEN 1 THEN
'1级'
'1级'
...
...
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