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