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
bb6af3f3
Commit
bb6af3f3
authored
Sep 29, 2022
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
巡检bug修改
parent
79c6a22a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
InputItemController.java
.../amos/patrol/business/controller/InputItemController.java
+18
-2
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 @
bb6af3f3
...
...
@@ -140,11 +140,27 @@ public class InputItemController extends AbstractBaseController {
resultMap
.
put
(
map
.
get
(
"code"
),
map
.
get
(
"name"
));
}
for
(
InputItemVo
inputItemVo
:
page
.
getContent
())
{
String
customTypeName
=
StringUtils
.
isNotEmpty
(
inputItemVo
.
getCustomType
())?
"自定义巡检点"
:
""
;
String
finalTypeName
=
""
;
finalTypeName
=
StringUtils
.
isNotEmpty
(
inputItemVo
.
getCustomType
())?
"自定义巡检点"
:
""
;
String
keyPartsTypeName
=
StringUtils
.
isNotEmpty
(
inputItemVo
.
getKeyPartsType
())?
"重点部位类型"
:
""
;
if
(
StringUtils
.
isNotEmpty
(
finalTypeName
)
&&
StringUtils
.
isNotEmpty
(
keyPartsTypeName
))
{
finalTypeName
=
finalTypeName
+
","
+
keyPartsTypeName
;
}
else
if
(!
StringUtils
.
isNotEmpty
(
finalTypeName
)
&&
StringUtils
.
isNotEmpty
(
keyPartsTypeName
))
{
finalTypeName
=
keyPartsTypeName
;
}
String
equipmentTypeName
=
StringUtils
.
isNotEmpty
(
inputItemVo
.
getEquipmentType
())?
resultMap
.
get
(
inputItemVo
.
getEquipmentType
())
:
""
;
if
(
StringUtils
.
isNotEmpty
(
finalTypeName
)
&&
StringUtils
.
isNotEmpty
(
equipmentTypeName
))
{
finalTypeName
=
finalTypeName
+
","
+
equipmentTypeName
;
}
else
if
(!
StringUtils
.
isNotEmpty
(
finalTypeName
)
&&
StringUtils
.
isNotEmpty
(
equipmentTypeName
))
{
finalTypeName
=
equipmentTypeName
;
}
String
facilitiesTypeName
=
StringUtils
.
isNotEmpty
(
inputItemVo
.
getFacilitiesType
())?
resultMap
.
get
(
inputItemVo
.
getFacilitiesType
())
:
""
;
inputItemVo
.
setTypeName
(
customTypeName
+
keyPartsTypeName
+
equipmentTypeName
+
facilitiesTypeName
);
if
(
StringUtils
.
isNotEmpty
(
finalTypeName
)
&&
StringUtils
.
isNotEmpty
(
facilitiesTypeName
))
{
finalTypeName
=
finalTypeName
+
","
+
facilitiesTypeName
;
}
else
if
(!
StringUtils
.
isNotEmpty
(
finalTypeName
)
&&
StringUtils
.
isNotEmpty
(
facilitiesTypeName
))
{
finalTypeName
=
facilitiesTypeName
;
}
inputItemVo
.
setTypeName
(
finalTypeName
);
}
return
CommonResponseUtil
.
success
(
page
);
}
...
...
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