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
3b9106aa
Commit
3b9106aa
authored
Aug 24, 2022
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
9b9ef512
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
4 deletions
+36
-4
ConfigureController.java
...m/yeejoin/equipmanage/controller/ConfigureController.java
+1
-1
MqttReceiveServiceImpl.java
...join/equipmanage/service/impl/MqttReceiveServiceImpl.java
+9
-0
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+26
-3
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/ConfigureController.java
View file @
3b9106aa
...
...
@@ -531,7 +531,7 @@ public class ConfigureController extends AbstractBaseController {
}
@PersonIdentify
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"物联监控大屏3大-获取某站下
未消除
的告警信息"
)
@ApiOperation
(
value
=
"物联监控大屏3大-获取某站下
待确认
的告警信息"
)
@GetMapping
(
"/todayAlarmUnEliminateMessage"
)
public
ResponseModel
todayAlarmUnEliminateMessage
(
@RequestParam
(
required
=
false
)
String
bizOrgCode
)
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/MqttReceiveServiceImpl.java
View file @
3b9106aa
...
...
@@ -367,6 +367,15 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
carTransactionSynch
(
carProperties
,
carPropertyVos
);
}
});
// 需要在事务提交之后,否侧事务隔离查询不出数据
TransactionSynchronizationManager
.
registerSynchronization
(
new
TransactionSynchronization
()
{
@Override
public
void
afterCommit
()
{
// 组态大屏消息推送,设备表实时指标修改
// intePageSysDataRefresh(equipmentSpecificIndexList, topicEntity);
mqttSendGateway
.
sendToMqtt
(
TopicEnum
.
EQXXTJ
.
getTopic
(),
""
);
}
});
}
public
static
List
<
EquipmentSpecificAlarmLog
>
upAlarmLogStatus
(
String
iotCode
,
String
equipmentSpecificIndexKey
,
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
3b9106aa
...
...
@@ -2571,12 +2571,13 @@
<select
id=
"getPressurePumpInfo3Small"
resultType=
"java.util.Map"
>
SELECT
ed.`name`,
ed.
area,
CONCAT( ws.`name`, ed.area )
area,
es.iot_code,
es.id
FROM
wl_equipment_detail ed
LEFT JOIN wl_equipment_specific es ON es.equipment_detail_id = ed.id
LEFT JOIN wl_warehouse_structure ws ON ws.id = es.warehouse_structure_id
WHERE
ed.`code` LIKE '92010800%'
AND biz_org_code like concat(#{bizOrgCode}, '%')
...
...
@@ -3108,7 +3109,7 @@
</select>
<select
id=
"todayAlarmUnEliminateEquipment"
resultType=
"java.util.Map"
>
SELECT
`a`.`
currentDate
Num` AS `currentDateNum`,
`a`.`
unclearTotal
Num` AS `currentDateNum`,
(
abs(
(
...
...
@@ -3170,6 +3171,17 @@
FROM
`wl_equipment_specific_alarm_log`
WHERE
status = 1
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
and equipment_specific_id in(SELECT id FROM wl_equipment_specific WHERE biz_org_code like concat(#{bizOrgCode}, '%'))
</if>
) AS `unclearTotalNum`,
(
SELECT
count( DISTINCT `wl_equipment_specific_alarm_log`.`equipment_specific_id` )
FROM
`wl_equipment_specific_alarm_log`
WHERE
create_date LIKE concat( cast( ( curdate( ) + INTERVAL - ( 1 ) DAY ) AS date ), '%' )
...
...
@@ -3214,7 +3226,7 @@
</select>
<select
id=
"todayAlarmUnEliminateMessage"
resultType=
"java.util.Map"
>
SELECT
`a`.`
currentDate
Num` AS `currentDateNum`,
`a`.`
unConfirmTotal
Num` AS `currentDateNum`,
(
abs(
(
...
...
@@ -3275,6 +3287,17 @@
FROM
`wl_equipment_specific_alarm_log`
WHERE
confirm_date IS NULL
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
and equipment_specific_id in(SELECT id FROM wl_equipment_specific WHERE biz_org_code like concat(#{bizOrgCode}, '%'))
</if>
) AS `unConfirmTotalNum`,
(
SELECT
count( `wl_equipment_specific_alarm_log`.`equipment_specific_id` )
FROM
`wl_equipment_specific_alarm_log`
WHERE
create_date LIKE concat( cast( ( curdate( ) + INTERVAL - ( 1 ) DAY ) AS date ), '%' )
...
...
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