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
ff5ba5d9
Commit
ff5ba5d9
authored
Jan 12, 2024
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改消防资源点击筛选问题
parent
d16ee708
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
FireFightingSystemController.java
.../equipmanage/controller/FireFightingSystemController.java
+12
-3
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+0
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/FireFightingSystemController.java
View file @
ff5ba5d9
...
...
@@ -519,6 +519,7 @@ public class FireFightingSystemController extends AbstractBaseController {
}
EquipmentCategory
equipmentCategory
=
equipmentCategoryList
.
get
(
0
);
int
inhierarchy
=
1
;
int
flag
=
0
;
for
(
int
i
=
0
;
i
<
result
.
length
+
1
;
i
++)
{
//进来先判断是否默认就是空,如果为空第一层
if
(
equipmentCategory
.
getParentId
()
==
null
)
{
...
...
@@ -528,16 +529,24 @@ public class FireFightingSystemController extends AbstractBaseController {
}
else
{
inhierarchy
=
map
.
get
(
i
);
}
flag
=
i
;
break
;
}
else
{
//查找到循环几次为空
equipmentCategory
=
equipmentCategoryService
.
getById
(
equipmentCategory
.
getParentId
());
}
}
return
fireFightingSystemService
.
getColaCategoryAmountEquList
(
inhierarchy
,
equipTypeAmountPage
.
getEquipmentClassificationCode
(),
equipTypeAmountPage
);
if
(
flag
==
0
)
{
String
classificationCode
=
equipTypeAmountPage
.
getEquipmentClassificationCode
().
replaceAll
(
"0+$"
,
""
);
return
fireFightingSystemService
.
getColaCategoryAmountEquList
(
inhierarchy
,
classificationCode
,
equipTypeAmountPage
);
}
else
{
String
classificationCode
=
equipTypeAmountPage
.
getEquipmentClassificationCode
().
replaceAll
(
"0+$"
,
""
);
return
fireFightingSystemService
.
getColaCategoryAmountEquList
(
inhierarchy
,
classificationCode
.
length
()
%
2
==
0
?
classificationCode
:
classificationCode
+
"0"
,
equipTypeAmountPage
);
}
// return fireFightingSystemService.getColaCategoryAmountEquList(inhierarchy, equipTypeAmountPage.getEquipmentClassificationCode(), equipTypeAmountPage);
//
String classificationCode = equipTypeAmountPage.getEquipmentClassificationCode().replaceAll("0+$", "");
//
return fireFightingSystemService.getColaCategoryAmountEquList(inhierarchy, classificationCode.length() % 2 == 0 ? classificationCode : classificationCode + "0", equipTypeAmountPage);
//
String classificationCode = equipTypeAmountPage.getEquipmentClassificationCode().replaceAll("0+$", "");
//
return fireFightingSystemService.getColaCategoryAmountEquList(inhierarchy, classificationCode.length() % 2 == 0 ? classificationCode : classificationCode + "0", equipTypeAmountPage);
}
else
{
if
(
null
!=
equipTypeAmountPage
.
getIsDefect
()
&&
1
==
equipTypeAmountPage
.
getIsDefect
())
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
ff5ba5d9
This diff is collapsed.
Click to expand it.
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