|
@@ -112,6 +112,7 @@ public class IotAlarmDataServiceImpl extends ServiceImpl<IotAlarmDataMapper, Iot
|
|
|
//报警中,且表中没有告警数据,则插入数据
|
|
//报警中,且表中没有告警数据,则插入数据
|
|
|
this.saveBatch(list);
|
|
this.saveBatch(list);
|
|
|
iotSensor.setState(1);
|
|
iotSensor.setState(1);
|
|
|
|
|
+ iotSensor.setStateStartTime(LocalDateTime.now());
|
|
|
iotSensorMapper.updateById(iotSensor);
|
|
iotSensorMapper.updateById(iotSensor);
|
|
|
}
|
|
}
|
|
|
if(isExpress && !isAlarm && alarms.size() != 0){
|
|
if(isExpress && !isAlarm && alarms.size() != 0){
|