|
@@ -1489,8 +1489,12 @@ public class ProjectService {
|
|
|
if (objects.contains(alarmStatus)) {
|
|
if (objects.contains(alarmStatus)) {
|
|
|
for (KwsThreshold threshold : thresholds) {
|
|
for (KwsThreshold threshold : thresholds) {
|
|
|
if (alarmStatus.equals(String.valueOf(threshold.getLevel()))) {
|
|
if (alarmStatus.equals(String.valueOf(threshold.getLevel()))) {
|
|
|
- List<KwsAlarmDetail> alarmDetails = alarmDetailMapper.selectList(new LambdaQueryWrapper<KwsAlarmDetail>()
|
|
|
|
|
- .eq(KwsAlarmDetail::getPid, threshold.getId()));
|
|
|
|
|
|
|
+ List<KwsAlarmDetail> alarmDetails = alarmDetailMapper.selectList(
|
|
|
|
|
+ new LambdaQueryWrapper<KwsAlarmDetail>()
|
|
|
|
|
+ .eq(KwsAlarmDetail::getPid, threshold.getId())
|
|
|
|
|
+ .eq(KwsAlarmDetail::getStatus, 0)
|
|
|
|
|
+ .eq(KwsAlarmDetail::getDelFlag, 0)
|
|
|
|
|
+ );
|
|
|
if (!CollectionUtils.isEmpty(alarmDetails) && alarmDetails.size() > 0) {
|
|
if (!CollectionUtils.isEmpty(alarmDetails) && alarmDetails.size() > 0) {
|
|
|
thresholdId = alarmDetails.get(0).getAlarmId().toString();
|
|
thresholdId = alarmDetails.get(0).getAlarmId().toString();
|
|
|
}
|
|
}
|
|
@@ -1567,7 +1571,7 @@ public class ProjectService {
|
|
|
.eq(KwsDeviceRelation::getId, Long.parseLong(deviceRelationId))
|
|
.eq(KwsDeviceRelation::getId, Long.parseLong(deviceRelationId))
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
- /**删除所存在的关联设备组网关系*/
|
|
|
|
|
|
|
+ /**删除所存在的项目设备关联关系*/
|
|
|
projectDeviceMapper.update(null,
|
|
projectDeviceMapper.update(null,
|
|
|
new LambdaUpdateWrapper<KwsProjectDevice>()
|
|
new LambdaUpdateWrapper<KwsProjectDevice>()
|
|
|
.set(KwsProjectDevice::getDelFlag, 1)
|
|
.set(KwsProjectDevice::getDelFlag, 1)
|