|
|
@@ -181,7 +181,7 @@ public class IotDeviceInfoServiceImpl extends ServiceImpl<IotDeviceInfoMapper, I
|
|
|
public void deleteAlarmHostDeviceByToken(String token) {
|
|
|
UpdateWrapper<IotDeviceInfo> uw = new UpdateWrapper<>();
|
|
|
uw.lambda().eq(IotDeviceInfo::getIotToken, token);
|
|
|
- uw.lambda().eq(IotDeviceInfo::getDeviceType, DeviceTypeEnum.ALARM_HOST);
|
|
|
+ uw.lambda().eq(IotDeviceInfo::getDeviceType, DeviceTypeEnum.ALARM_HOST.getCode());
|
|
|
uw.lambda().set(IotDeviceInfo::getDeleted, 1);
|
|
|
update(uw);
|
|
|
}
|