Ver Fonte

代码修改

xujie há 1 ano atrás
pai
commit
615e48d0d4

+ 1 - 1
soc-modules/soc-modules-host/src/main/java/com/xunmei/host/iot/service/impl/IotDeviceInfoServiceImpl.java

@@ -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);
     }

+ 1 - 1
soc-modules/soc-modules-mediator/src/main/java/com/xunmei/mediator/iot/service/impl/IotDeviceInfoServiceImpl.java

@@ -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);
     }