|
@@ -305,8 +305,8 @@ public class IotDeviceServiceImpl implements IotDeviceService {
|
|
List<IotDeviceDO> deviceDOS = iotDeviceMapper.selectList();
|
|
List<IotDeviceDO> deviceDOS = iotDeviceMapper.selectList();
|
|
deviceDOS.forEach(deviceDO -> {
|
|
deviceDOS.forEach(deviceDO -> {
|
|
deviceDO.setSortColumn(NumberUtils.extractNumber(deviceDO.getDeviceCode()));
|
|
deviceDO.setSortColumn(NumberUtils.extractNumber(deviceDO.getDeviceCode()));
|
|
|
|
+ iotDeviceMapper.updateById(deviceDO);
|
|
});
|
|
});
|
|
- iotDeviceMapper.updateBatch(deviceDOS);
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -317,8 +317,8 @@ public class IotDeviceServiceImpl implements IotDeviceService {
|
|
if (Objects.nonNull(dictData)) {
|
|
if (Objects.nonNull(dictData)) {
|
|
deviceDO.setBrandName(dictData.getLabel());
|
|
deviceDO.setBrandName(dictData.getLabel());
|
|
}
|
|
}
|
|
|
|
+ iotDeviceMapper.updateById(deviceDO);
|
|
});
|
|
});
|
|
- iotDeviceMapper.updateBatch(deviceDOS);
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|