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
2e88c08a
Commit
2e88c08a
authored
May 18, 2022
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
跑马灯消息重复问题
parent
909c33bc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
3 deletions
+30
-3
EquipmentSpecificAlarmMapper.java
...join/equipmanage/mapper/EquipmentSpecificAlarmMapper.java
+11
-3
BuildingServiceImpl.java
...yeejoin/equipmanage/service/impl/BuildingServiceImpl.java
+4
-0
MqttReceiveServiceImpl.java
...join/equipmanage/service/impl/MqttReceiveServiceImpl.java
+4
-0
EquipmentSpecificAlarmMapper.xml
...rc/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
+11
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/EquipmentSpecificAlarmMapper.java
View file @
2e88c08a
...
...
@@ -150,7 +150,7 @@ public interface EquipmentSpecificAlarmMapper extends BaseMapper<EquipmentSpecif
List
<
FireEquipmentFireAlarm
>
getFireEquipAlarmDetailsByAlarmId
(
@Param
(
"list"
)
List
<
Long
>
specificAlarmIds
,
@Param
(
"indexIds"
)
List
<
Long
>
equipIndexIds
);
Page
<
Map
<
String
,
Object
>>
pageAlarmsInfo
(
Page
page
,
@Param
(
"param"
)
CommonPageInfoParam
param
);
Page
<
Map
<
String
,
Object
>>
pageAlarmsInfo
(
Page
page
,
@Param
(
"param"
)
CommonPageInfoParam
param
);
List
<
Map
<
String
,
Object
>>
getProObject
(
@Param
(
"id"
)
Long
id
);
...
...
@@ -164,6 +164,7 @@ public interface EquipmentSpecificAlarmMapper extends BaseMapper<EquipmentSpecif
Page
<
EquipSpecificAlarmDTO
>
getAlarmPage
(
Page
page
,
@Param
(
"dto"
)
AlarmDTO
dto
);
Page
<
EquipSpecificAlarmDTO
>
getEqPage
(
Page
page
,
@Param
(
"dto"
)
AlarmDTO
dto
);
List
<
EquipmentSpecificAlarmLog
>
getConfirmUser
();
EquipSpecificAlarmDTO
getbyqrCode
(
@Param
(
"code"
)
String
code
);
...
...
@@ -174,9 +175,8 @@ public interface EquipmentSpecificAlarmMapper extends BaseMapper<EquipmentSpecif
//统计已处理和未处理
Integer
getcountAlarmHandle
(
@Param
(
"tyep"
)
String
tyep
);
/**
*
* <pre>
* 根据装备id和查询指定状态告警数据
* </pre>
...
...
@@ -187,4 +187,12 @@ public interface EquipmentSpecificAlarmMapper extends BaseMapper<EquipmentSpecif
*/
List
<
EquipmentSpecificAlarm
>
getEquipListBySpecific
(
@Param
(
"status"
)
Boolean
status
,
@Param
(
"equipmentSpecificId"
)
Long
equipmentSpecificId
);
/**
* 根据Code 和 indexKey 查设备是否报警
* @param iotCode
* @param indexKey
* @param indexValue
* @return
*/
int
selectCountByIotCode
(
@Param
(
"iotCode"
)
String
iotCode
,
@Param
(
"indexKey"
)
String
indexKey
,
@Param
(
"indexValue"
)
String
indexValue
);
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/BuildingServiceImpl.java
View file @
2e88c08a
...
...
@@ -1301,8 +1301,12 @@ public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> i
public
List
<
BuildingTreeVo
>
getBuildingVideoTreeNew
()
{
//1.组装数据
List
<
BuildingTreeVo
>
companyBuildingList
=
buildBuildingAndCompanyListVos
(
buildVideoAuthKey
);
List
<
Map
<
String
,
Long
>>
countList
=
iFormInstanceService
.
getBuildVideoCount
();
Map
<
Long
,
Long
>
countMap
=
countList
.
stream
().
collect
(
Collectors
.
toMap
(
p
->
p
.
get
(
"buildId"
),
p
->
p
.
get
(
"total"
)));
companyBuildingList
.
forEach
(
c
->
{
// 建筑类型数据,填充本级及子级包含的摄像头数量
if
(!
ALL_BUILDING
.
equals
(
c
.
getGroupType
()))
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/MqttReceiveServiceImpl.java
View file @
2e88c08a
...
...
@@ -264,6 +264,10 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
if
(
ObjectUtils
.
isEmpty
(
iotDatalist
))
{
return
;
}
int
count
=
equipmentSpecificAlarmMapper
.
selectCountByIotCode
(
iotCode
,
iotDatalist
.
get
(
0
).
getKey
(),
String
.
valueOf
(
iotDatalist
.
get
(
0
).
getValue
()));
if
(
count
>
0
)
{
return
;
}
log
.
info
(
String
.
format
(
"收到mqtt消息:%s"
,
message
));
realTimeDateProcessing
(
topicEntity
,
iotDatalist
);
}
...
...
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificAlarmMapper.xml
View file @
2e88c08a
...
...
@@ -1096,4 +1096,14 @@
</if>
</select>
<select
id=
"selectCountByIotCode"
resultType=
"int"
>
SELECT
count(*)
FROM
wl_equipment_specific_alarm
WHERE
iot_code = #{iotCode,jdbcType=VARCHAR}
AND equipment_specific_index_value = #{indexValue,jdbcType=VARCHAR}
AND equipment_specific_index_key = #{indexKey,jdbcType=VARCHAR}
</select>
</mapper>
\ No newline at end of file
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