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
6722d0cc
Commit
6722d0cc
authored
Sep 29, 2022
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
巡检左侧树bug修改
parent
bb6af3f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
EquipmentCategoryController.java
...n/equipmanage/controller/EquipmentCategoryController.java
+3
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/EquipmentCategoryController.java
View file @
6722d0cc
...
@@ -451,12 +451,14 @@ public class EquipmentCategoryController extends AbstractBaseController {
...
@@ -451,12 +451,14 @@ public class EquipmentCategoryController extends AbstractBaseController {
Map
<
String
,
List
<
EquipmentCategory
>>
tmpMap
=
new
HashMap
<
String
,
List
<
EquipmentCategory
>>();
Map
<
String
,
List
<
EquipmentCategory
>>
tmpMap
=
new
HashMap
<
String
,
List
<
EquipmentCategory
>>();
final
Integer
[]
countAll
=
{
0
};
final
Integer
[]
countAll
=
{
0
};
equipmentCategorys
.
forEach
(
action
->
{
equipmentCategorys
.
forEach
(
action
->
{
String
beginName
=
action
.
getName
();
String
subCode
=
action
.
getCode
().
replaceAll
(
"0+$"
,
""
);
String
subCode
=
action
.
getCode
().
replaceAll
(
"0+$"
,
""
);
int
count
=
equipmentCategoryMapper
.
countByCategoryCode
(
subCode
);
int
count
=
equipmentCategoryMapper
.
countByCategoryCode
(
subCode
);
action
.
setName
(
action
.
getName
()
+
"("
+
count
+
")"
);
action
.
setName
(
action
.
getName
()
+
"("
+
count
+
")"
);
countAll
[
0
]
=
count
+
countAll
[
0
];
countAll
[
0
]
=
count
+
countAll
[
0
];
if
(
action
.
getName
().
equals
(
"消防设施"
)
||
action
.
getName
()
.
equals
(
"消防系统"
))
{
if
(
beginName
.
equals
(
"消防设施"
)
||
beginName
.
equals
(
"消防系统"
))
{
action
.
setPatrolNum
(
count
);
action
.
setPatrolNum
(
count
);
action
.
setParentId
(-
1L
);
list
.
add
(
action
);
list
.
add
(
action
);
}
else
{
}
else
{
if
(
tmpMap
.
get
(
action
.
getParentId
().
toString
())
==
null
)
{
if
(
tmpMap
.
get
(
action
.
getParentId
().
toString
())
==
null
)
{
...
...
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