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