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
a02200af
Commit
a02200af
authored
Aug 17, 2022
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物联设备
parent
bd4b0865
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
76 additions
and
0 deletions
+76
-0
BigScreenVo.java
...n/java/com/yeejoin/equipmanage/common/vo/BigScreenVo.java
+4
-0
FireFightingSystemMapper.java
.../yeejoin/equipmanage/mapper/FireFightingSystemMapper.java
+2
-0
FireFightingSystemServiceImpl.java
...uipmanage/service/impl/FireFightingSystemServiceImpl.java
+4
-0
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+66
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/vo/BigScreenVo.java
View file @
a02200af
...
@@ -18,5 +18,9 @@ public class BigScreenVo {
...
@@ -18,5 +18,9 @@ public class BigScreenVo {
private
List
<
Map
<
String
,
Object
>>
industryPool
;
private
List
<
Map
<
String
,
Object
>>
industryPool
;
private
List
<
Map
<
String
,
Object
>>
equipInfo
;
private
List
<
Map
<
String
,
Object
>>
breakdownInfo
;
// private Integer carNum;
// private Integer carNum;
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/FireFightingSystemMapper.java
View file @
a02200af
...
@@ -401,4 +401,6 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE
...
@@ -401,4 +401,6 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE
Integer
getCarNum
(
@Param
(
"companyCode"
)
String
companyCode
);
Integer
getCarNum
(
@Param
(
"companyCode"
)
String
companyCode
);
List
<
Map
<
String
,
Object
>>
getCarInfo
(
@Param
(
"companyCode"
)
String
companyCode
);
List
<
Map
<
String
,
Object
>>
getCarInfo
(
@Param
(
"companyCode"
)
String
companyCode
);
List
<
Map
<
String
,
Object
>>
getEquipInfo
(
@Param
(
"companyCode"
)
String
companyCode
,
@Param
(
"alarmType"
)
String
alarmType
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/FireFightingSystemServiceImpl.java
View file @
a02200af
...
@@ -1357,6 +1357,10 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
...
@@ -1357,6 +1357,10 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
bigScreenVo
.
setSystemAlarmInfoNum
(
systemAlarmInfoNum
);
bigScreenVo
.
setSystemAlarmInfoNum
(
systemAlarmInfoNum
);
bigScreenVo
.
setIndustryPool
(
industryPool
);
bigScreenVo
.
setIndustryPool
(
industryPool
);
bigScreenVo
.
setPool
(
pool
);
bigScreenVo
.
setPool
(
pool
);
List
<
Map
<
String
,
Object
>>
equipInfo
=
fireFightingSystemMapper
.
getEquipInfo
(
companyCode
,
null
);
List
<
Map
<
String
,
Object
>>
breakdown
=
fireFightingSystemMapper
.
getEquipInfo
(
companyCode
,
"BREAKDOWN"
);
bigScreenVo
.
setEquipInfo
(
equipInfo
);
bigScreenVo
.
setBreakdownInfo
(
breakdown
);
return
bigScreenVo
;
return
bigScreenVo
;
}
}
}
}
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
a02200af
...
@@ -2831,4 +2831,70 @@
...
@@ -2831,4 +2831,70 @@
wc.id
wc.id
) a) b
) a) b
</select>
</select>
<select
id=
"getEquipInfo"
resultType=
"java.util.Map"
>
SELECT
temp.total,
temp.notReturned,
temp.alarmEquipTotalNum,(
temp.alarmEquipTotalNum - temp.notReturned
) AS returned,
(
TRUNCATE ( abs(( temp.alarmEquipTotalNum ) / IF (( temp.total = 0 ), 1, temp.total )), 2 ) * 100
) AS equipAbs,
(
TRUNCATE ( abs(( temp.alarmEquipTotalNum - temp.notReturned ) / IF (( temp.alarmEquipTotalNum = 0 ), 1, temp.alarmEquipTotalNum )), 2 ) * 100
) AS returnAbs
FROM
(
SELECT
(
SELECT
count( 1 )
FROM
wl_equipment_specific es
LEFT JOIN wl_equipment_detail ed ON es.equipment_detail_id = ed.id
LEFT JOIN wl_equipment e ON e.id = ed.equipment_id
LEFT JOIN cb_org_usr ou ON ou.biz_org_code = es.biz_org_code
WHERE
e.is_iot = 1
<if
test=
"companyCode != null and companyCode != ''"
>
and ou.`code` = #{companyCode}
</if>
) AS total,
(
SELECT
COUNT(
DISTINCT ( esa.iot_code ))
FROM
wl_equipment_specific_alarm esa
LEFT JOIN cb_org_usr ou ON ou.amos_org_code = esa.org_code
WHERE
esa.create_date LIKE CONCAT( DATE_FORMAT( now(), '%Y-%m' ), '%' )
<if
test=
"alarmType != null and alarmType != ''"
>
AND esa.type = #{alarmType}
</if>
<if
test=
"companyCode != null and companyCode != ''"
>
and ou.`code` = #{companyCode}
</if>
) AS alarmEquipTotalNum,
(
SELECT
COUNT(
DISTINCT ( esa.iot_code ))
FROM
wl_equipment_specific_alarm esa
LEFT JOIN cb_org_usr ou ON ou.amos_org_code = esa.org_code
WHERE
esa.equipment_specific_index_value = "true"
AND esa.create_date LIKE CONCAT( DATE_FORMAT( now(), '%Y-%m' ), '%' )
<if
test=
"alarmType != null and alarmType != ''"
>
AND esa.type = #{alarmType}
</if>
<if
test=
"companyCode != null and companyCode != ''"
>
and ou.`code` = #{companyCode}
</if>
) AS notReturned
) temp
</select>
</mapper>
</mapper>
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