Commit 6f0f47e2 authored by 李秀明's avatar 李秀明

fix: 消防系统统计装备数量错误

parent 13795c4a
...@@ -1148,7 +1148,9 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste ...@@ -1148,7 +1148,9 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
List<AlarmDataVO> list = this.baseMapper.getSystemById(id); List<AlarmDataVO> list = this.baseMapper.getSystemById(id);
// 部件总数 // 部件总数
Integer equipmentCount = equipmentSpecificMapper.selectCount( Integer equipmentCount = equipmentSpecificMapper.selectCount(
Wrappers.<EquipmentSpecific>lambdaQuery().eq(EquipmentSpecific::getSystemId, id) Wrappers.<EquipmentSpecific>lambdaQuery()
.eq(EquipmentSpecific::getSystemId, id)
.eq(EquipmentSpecific::getSingle, true)
); );
// 今日报警次数 // 今日报警次数
Integer alarmCount = equipmentSpecificAlarmLogMapper.selectCount( Integer alarmCount = equipmentSpecificAlarmLogMapper.selectCount(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment