代码
LambdaUpdateWrapper<Temperature> temperatureLambdaQueryWrapper = new LambdaUpdateWrapper<>();
temperatureLambdaQueryWrapper.eq(Temperature::getRealTime, 1).set(Temperature::getRealTime, 0);
temperatureService.update(null, temperatureLambdaQueryWrapper);