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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
+15
-6
FireFightingSystemController.java
.../equipmanage/controller/FireFightingSystemController.java
+12
-3
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+3
-3
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 {
...
@@ -519,6 +519,7 @@ public class FireFightingSystemController extends AbstractBaseController {
}
}
EquipmentCategory
equipmentCategory
=
equipmentCategoryList
.
get
(
0
);
EquipmentCategory
equipmentCategory
=
equipmentCategoryList
.
get
(
0
);
int
inhierarchy
=
1
;
int
inhierarchy
=
1
;
int
flag
=
0
;
for
(
int
i
=
0
;
i
<
result
.
length
+
1
;
i
++)
{
for
(
int
i
=
0
;
i
<
result
.
length
+
1
;
i
++)
{
//进来先判断是否默认就是空,如果为空第一层
//进来先判断是否默认就是空,如果为空第一层
if
(
equipmentCategory
.
getParentId
()
==
null
)
{
if
(
equipmentCategory
.
getParentId
()
==
null
)
{
...
@@ -528,16 +529,24 @@ public class FireFightingSystemController extends AbstractBaseController {
...
@@ -528,16 +529,24 @@ public class FireFightingSystemController extends AbstractBaseController {
}
else
{
}
else
{
inhierarchy
=
map
.
get
(
i
);
inhierarchy
=
map
.
get
(
i
);
}
}
flag
=
i
;
break
;
break
;
}
else
{
}
else
{
//查找到循环几次为空
//查找到循环几次为空
equipmentCategory
=
equipmentCategoryService
.
getById
(
equipmentCategory
.
getParentId
());
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+$", "");
//
String classificationCode = equipTypeAmountPage.getEquipmentClassificationCode().replaceAll("0+$", "");
//
return fireFightingSystemService.getColaCategoryAmountEquList(inhierarchy, classificationCode.length() % 2 == 0 ? classificationCode : classificationCode + "0", equipTypeAmountPage);
//
return fireFightingSystemService.getColaCategoryAmountEquList(inhierarchy, classificationCode.length() % 2 == 0 ? classificationCode : classificationCode + "0", equipTypeAmountPage);
}
else
{
}
else
{
if
(
null
!=
equipTypeAmountPage
.
getIsDefect
()
&&
1
==
equipTypeAmountPage
.
getIsDefect
())
{
if
(
null
!=
equipTypeAmountPage
.
getIsDefect
()
&&
1
==
equipTypeAmountPage
.
getIsDefect
())
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
ReginParams
reginParams
=
getSelectedOrgInfo
();
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
ff5ba5d9
...
@@ -1997,8 +1997,8 @@
...
@@ -1997,8 +1997,8 @@
LEFT JOIN wl_equipment_category wec ON wle.category_id = wec.id
LEFT JOIN wl_equipment_category wec ON wle.category_id = wec.id
WHERE 1=1
WHERE 1=1
<if
test=
"codeHead!=null and codeHead!='' and codeHead!=' '"
>
<if
test=
"codeHead!=null and codeHead!='' and codeHead!=' '"
>
<!-- and LEFT (wle.CODE, #{hierarchy}) = #{codeHead}-->
and LEFT (wle.CODE, #{hierarchy}) = #{codeHead}
and wec.`code` like concat(#{codeHead}, '%')
<!-- and wec.`code` like concat(#{codeHead}, '%')-->
</if>
</if>
<if
test=
"equipTypeAmountPage.industryCode!=null"
>
<if
test=
"equipTypeAmountPage.industryCode!=null"
>
and wec.industry_code = #{equipTypeAmountPage.industryCode}
and wec.industry_code = #{equipTypeAmountPage.industryCode}
...
@@ -2688,7 +2688,7 @@
...
@@ -2688,7 +2688,7 @@
</select>
</select>
<select
id=
"equipAlarmTOP"
resultType=
"java.util.Map"
>
<select
id=
"equipAlarmTOP"
resultType=
"java.util.Map"
>
<!-- SELECT-->
<!-- SELECT-->
<!-- ifnull( `a`.`fightSysName`, NULL ) AS `fightSysName`,-->
<!-- ifnull( `a`.`fightSysName`, NULL ) AS `fightSysName`,-->
<!-- ifnull( `a`.`fightSysCode`, NULL ) AS `fightSysCode`,-->
<!-- ifnull( `a`.`fightSysCode`, NULL ) AS `fightSysCode`,-->
<!-- ifnull( `a`.`fightSysId`, NULL ) AS `fightSysId`,-->
<!-- ifnull( `a`.`fightSysId`, NULL ) AS `fightSysId`,-->
...
...
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