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
f25f5f51
Commit
f25f5f51
authored
Mar 01, 2024
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改巡检项列表bug
parent
56757441
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
18 deletions
+28
-18
InputItemController.java
.../amos/patrol/business/controller/InputItemController.java
+27
-18
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 @
f25f5f51
...
@@ -152,24 +152,33 @@ public class InputItemController extends AbstractBaseController {
...
@@ -152,24 +152,33 @@ public class InputItemController extends AbstractBaseController {
}
}
for
(
InputItemVo
inputItemVo
:
page
.
getContent
())
{
for
(
InputItemVo
inputItemVo
:
page
.
getContent
())
{
String
finalTypeName
=
""
;
String
finalTypeName
=
""
;
finalTypeName
=
StringUtils
.
isNotEmpty
(
inputItemVo
.
getCustomType
())?
"自定义巡检点"
:
""
;
// finalTypeName = StringUtils.isNotEmpty(inputItemVo.getCustomType())? "自定义巡检点" : "";
String
keyPartsTypeName
=
StringUtils
.
isNotEmpty
(
inputItemVo
.
getKeyPartsType
())?
"重点部位类型"
:
""
;
// String keyPartsTypeName = StringUtils.isNotEmpty(inputItemVo.getKeyPartsType())? "重点部位类型" : "";
if
(
StringUtils
.
isNotEmpty
(
finalTypeName
)
&&
StringUtils
.
isNotEmpty
(
keyPartsTypeName
))
{
// if (StringUtils.isNotEmpty(finalTypeName) && StringUtils.isNotEmpty(keyPartsTypeName)) {
finalTypeName
=
finalTypeName
+
","
+
keyPartsTypeName
;
// finalTypeName = finalTypeName + "," + keyPartsTypeName;
}
else
if
(!
StringUtils
.
isNotEmpty
(
finalTypeName
)
&&
StringUtils
.
isNotEmpty
(
keyPartsTypeName
))
{
// } else if (!StringUtils.isNotEmpty(finalTypeName) && StringUtils.isNotEmpty(keyPartsTypeName)) {
finalTypeName
=
keyPartsTypeName
;
// finalTypeName = keyPartsTypeName;
}
// }
String
equipmentTypeName
=
StringUtils
.
isNotEmpty
(
inputItemVo
.
getEquipmentType
())?
resultMap
.
get
(
inputItemVo
.
getEquipmentType
())
:
""
;
// String equipmentTypeName = StringUtils.isNotEmpty(inputItemVo.getEquipmentType())? resultMap.get(inputItemVo.getEquipmentType()) : "";
if
(
StringUtils
.
isNotEmpty
(
finalTypeName
)
&&
StringUtils
.
isNotEmpty
(
equipmentTypeName
))
{
// if (StringUtils.isNotEmpty(finalTypeName) && StringUtils.isNotEmpty(equipmentTypeName)) {
finalTypeName
=
finalTypeName
+
","
+
equipmentTypeName
;
// finalTypeName = finalTypeName + "," + equipmentTypeName;
}
else
if
(!
StringUtils
.
isNotEmpty
(
finalTypeName
)
&&
StringUtils
.
isNotEmpty
(
equipmentTypeName
))
{
// } else if (!StringUtils.isNotEmpty(finalTypeName) && StringUtils.isNotEmpty(equipmentTypeName)) {
finalTypeName
=
equipmentTypeName
;
// finalTypeName = equipmentTypeName;
}
// }
String
facilitiesTypeName
=
StringUtils
.
isNotEmpty
(
inputItemVo
.
getFacilitiesType
())?
resultMap
.
get
(
inputItemVo
.
getFacilitiesType
())
:
""
;
// String facilitiesTypeName = StringUtils.isNotEmpty(inputItemVo.getFacilitiesType())? resultMap.get(inputItemVo.getFacilitiesType()) : "";
if
(
StringUtils
.
isNotEmpty
(
finalTypeName
)
&&
StringUtils
.
isNotEmpty
(
facilitiesTypeName
))
{
// if (StringUtils.isNotEmpty(finalTypeName) && StringUtils.isNotEmpty(facilitiesTypeName)) {
finalTypeName
=
finalTypeName
+
","
+
facilitiesTypeName
;
// finalTypeName = finalTypeName + "," + facilitiesTypeName;
}
else
if
(!
StringUtils
.
isNotEmpty
(
finalTypeName
)
&&
StringUtils
.
isNotEmpty
(
facilitiesTypeName
))
{
// } else if (!StringUtils.isNotEmpty(finalTypeName) && StringUtils.isNotEmpty(facilitiesTypeName)) {
finalTypeName
=
facilitiesTypeName
;
// finalTypeName = facilitiesTypeName;
// }
if
(
inputItemVo
.
getCustomType
().
equals
(
"1"
)
&&
inputItemVo
.
getKeyPartsType
().
equals
(
"1"
))
{
finalTypeName
=
""
;
}
else
if
(
inputItemVo
.
getCustomType
().
equals
(
"0"
)
&&
inputItemVo
.
getKeyPartsType
().
equals
(
"1"
))
{
finalTypeName
=
"自定义巡检点"
;
}
else
if
(
inputItemVo
.
getCustomType
().
equals
(
"1"
)
&&
inputItemVo
.
getKeyPartsType
().
equals
(
"0"
))
{
finalTypeName
=
"重点部位类型"
;
}
else
if
(
inputItemVo
.
getCustomType
().
equals
(
"0"
)
&&
inputItemVo
.
getKeyPartsType
().
equals
(
"0"
))
{
finalTypeName
=
"自定义巡检点"
+
","
+
"重点部位类型"
;
}
}
inputItemVo
.
setTypeName
(
finalTypeName
);
inputItemVo
.
setTypeName
(
finalTypeName
);
}
}
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_input_item.xml
View file @
f25f5f51
...
@@ -64,6 +64,7 @@
...
@@ -64,6 +64,7 @@
<result
property=
"customType"
column=
"custom_type"
/>
<result
property=
"customType"
column=
"custom_type"
/>
<result
property=
"facilitiesType"
column=
"facilities_type"
/>
<result
property=
"facilitiesType"
column=
"facilities_type"
/>
<result
property=
"equipmentType"
column=
"equipment_type"
/>
<result
property=
"equipmentType"
column=
"equipment_type"
/>
<result
property=
"riskDesc"
column=
"risk_desc"
/>
</resultMap>
</resultMap>
...
...
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