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
569572b8
Commit
569572b8
authored
Feb 18, 2022
by
maoying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改组态图指标内容显示
parent
e434e9df
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
20 deletions
+55
-20
SpeIndexVo.java
...in/java/com/yeejoin/equipmanage/common/vo/SpeIndexVo.java
+7
-4
FireFightingSystemController.java
.../equipmanage/controller/FireFightingSystemController.java
+1
-1
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+47
-15
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/vo/SpeIndexVo.java
View file @
569572b8
...
...
@@ -9,11 +9,14 @@ import lombok.Data;
@Data
@ApiModel
(
description
=
"性能指标类"
)
public
class
SpeIndexVo
{
private
String
key
;
private
String
name
;
private
String
value
;
private
String
key
=
""
;
private
String
name
=
""
;
private
String
value
=
""
;
private
String
typeCode
;
private
String
typeCode
=
""
;
private
Long
equipmentSpecificId
;
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/FireFightingSystemController.java
View file @
569572b8
...
...
@@ -398,7 +398,7 @@ public class FireFightingSystemController extends AbstractBaseController {
/**
* 设备
报警信息
* 设备
指标数据查询
*
* @param id
* @return
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
569572b8
...
...
@@ -325,21 +325,53 @@
p_point p
</select>
<select
id=
"getSpeIndex"
resultType=
"com.yeejoin.equipmanage.common.vo.SpeIndexVo"
>
select * from (
select
eqin.name_key as `key`,
eqin.name as name,
eqin.type_code,
spein.update_date as updateDate,
if (eqin.unit is null, spein.value,concat(spein.value,eqin.unit)) as value
from
wl_equipment_specific_index as spein
left join wl_equipment_index as eqin on spein.equipment_index_id = eqin.id
where
spein.equipment_specific_id = #{id}
order by eqin.sort_num) as dat
where `key` is not null and `key` != ''
ORDER BY dat.updateDate DESC
SELECT
*
FROM
(
SELECT
eqin.name_key AS `key`,
eqin.`name` AS `name`,
eqin.type_code,
spein.update_date AS updateDate,
spein.equipment_specific_id as equipmentSpecificId,
IF (
eqin.unit IS NULL,
IF (
(
ISNULL(spein.value_label)
OR spein.value_label = ''
),
spein.`value`,
spein.value_label
),
concat(
IF (
(
ISNULL(spein.value_label)
OR spein.value_label = ''
),
spein.`value`,
spein.value_label
),
' ',
eqin.unit
)
) AS `value`
FROM
wl_equipment_specific_index AS spein
LEFT JOIN wl_equipment_index AS eqin ON spein.equipment_index_id = eqin.id
WHERE
spein.equipment_specific_id = #{id}
ORDER BY
eqin.sort_num
) AS dat
WHERE
`key` IS NOT NULL
AND `key` != ''
ORDER BY
dat.updateDate DESC
</select>
<select
id=
"getSpeIndexIn"
resultType=
"com.yeejoin.equipmanage.common.vo.SpeIndexVo"
>
select * from (
...
...
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