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
a983c80f
Commit
a983c80f
authored
Aug 07, 2024
by
李秀明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: BUG#21595 异常系统占比图例错误,显示的应该是系统类型名称、不是系统名称
parent
3e208227
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
29 deletions
+31
-29
SystemStatisticController.java
...oin/equipmanage/controller/SystemStatisticController.java
+4
-4
FireFightingSystemMapper.java
.../yeejoin/equipmanage/mapper/FireFightingSystemMapper.java
+1
-1
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+26
-24
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/SystemStatisticController.java
View file @
a983c80f
...
...
@@ -59,10 +59,10 @@ public class SystemStatisticController extends AbstractBaseController {
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@RequestMapping
(
value
=
"/
alarm/panel
"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取系统
告警统计信息"
,
notes
=
"获取系统告警统计信息
"
)
public
ResponseModel
get
AbnormalSystemInfo
(
@RequestParam
(
required
=
false
)
String
bizOrgCode
)
{
List
<
Map
<
String
,
Object
>>
list
=
fireFightingSystemMapper
.
get
AbnormalSystemInfo
(
bizOrgCode
);
@RequestMapping
(
value
=
"/
system-types-num-stats
"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取系统
类型数据统计"
,
notes
=
"获取系统类型数据统计
"
)
public
ResponseModel
get
SystemTypesNumStats
(
@RequestParam
(
required
=
false
)
String
bizOrgCode
)
{
List
<
Map
<
String
,
Object
>>
list
=
fireFightingSystemMapper
.
get
SystemTypesNumStats
(
bizOrgCode
);
return
CommonResponseUtil
.
success
(
list
);
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/FireFightingSystemMapper.java
View file @
a983c80f
...
...
@@ -754,7 +754,7 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE
Map
<
String
,
Object
>
getCenterEquipState
(
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
get
AbnormalSystemInfo
(
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
get
SystemTypesNumStats
(
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
Page
<
Map
<
String
,
Object
>>
getSystemInfoPage
(
Page
page
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
,
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
a983c80f
...
...
@@ -6905,30 +6905,32 @@
) d
</select>
<select
id=
"get
AbnormalSystemInfo
"
resultType=
"Map"
>
<select
id=
"get
SystemTypesNumStats
"
resultType=
"Map"
>
SELECT
d.id,
d.`name`
,
SUM(IF( d.VALUE > 0, 1, 0 )) AS sysNum
FROM
(
SELECT
`fs`.`id` AS `id`
,
`fs`.`name` AS `name`
,
fs
.system_type_code,
( SELECT count( 1 ) FROM `wl_equipment_specific_alarm_log` WHERE 0
<![CDATA[<>]]>
find_in_set( `fs`.`id`, `wl_equipment_specific_alarm_log`.`system_ids` ) ) AS `value`
FROM
`f_fire_fighting_system` `fs`
WHERE
fs.system_type_code IS NOT NULL
AND LENGTH(
trim( fs.system_type_code
)) != 0
<if
test=
"bizOrgCode!=null and bizOrgCode!=
''"
>
AND fs
.biz_org_code LIKE CONCAT(#{bizOrgCode},'%')
</if>
d.id,
d.system_type_code AS code
,
d.name,
SUM(IF( d.VALUE > 0, 1, 0 )) AS num
FROM
(
SELECT
t1.id AS id
,
t2.name AS name
,
t1
.system_type_code,
(SELECT count(1) FROM wl_equipment_specific_alarm_log t WHERE 0
<![CDATA[<>]]>
find_in_set( t1.id, t.system_ids ) ) AS value
FROM
f_fire_fighting_system t1
LEFT JOIN wl_equipment_category t2 on t1.system_type = t2.id
WHERE
t1.system_type_code IS NOT NULL AND LENGTH(TRIM(t1.system_type_code)) != 0
AND t2.name IS NOT NULL AND LENGTH(TRIM(t2.name
)) != 0
<if
test=
"bizOrgCode != null and bizOrgCode !=
''"
>
AND t1
.biz_org_code LIKE CONCAT(#{bizOrgCode},'%')
</if>
) d
WHERE d.value != 0
GROUP BY d.system_type_code
WHERE
d.value != 0
GROUP BY
d.system_type_code
</select>
<select
id=
"getSystemInfoPage"
resultType=
"Map"
>
...
...
@@ -7049,8 +7051,8 @@
f_fire_fighting_system t1
left join wl_equipment_category t2 on t1.system_type = t2.id
<where>
t1.system_type_code IS NOT NULL
AND t2.name IS NOT NULL
t1.system_type_code IS NOT NULL
AND LENGTH(TRIM(t1.system_type_code)) != 0
AND t2.name IS NOT NULL
AND LENGTH(TRIM(t2.name)) != 0
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
AND t1.biz_org_code LIKE CONCAT(#{bizOrgCode},'%')
</if>
...
...
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