|
@@ -171,7 +171,7 @@ public class DeviceQualityServiceImpl extends ServiceImpl<DeviceQualityMapper, D
|
|
}
|
|
}
|
|
CommandMqtt commandMqtt = new CommandMqtt()
|
|
CommandMqtt commandMqtt = new CommandMqtt()
|
|
.setDeviceId(deviceQuality.getDeviceId())
|
|
.setDeviceId(deviceQuality.getDeviceId())
|
|
- .setTemplet(obj.toString());
|
|
|
|
|
|
+ .setTemplet(obj);
|
|
mqttService.senCommand(Arrays.asList(commandMqtt));
|
|
mqttService.senCommand(Arrays.asList(commandMqtt));
|
|
return R.ok();
|
|
return R.ok();
|
|
}
|
|
}
|
|
@@ -251,7 +251,7 @@ public class DeviceQualityServiceImpl extends ServiceImpl<DeviceQualityMapper, D
|
|
saves.forEach(deviceQuality -> {
|
|
saves.forEach(deviceQuality -> {
|
|
CommandMqtt commandMqtt = new CommandMqtt()
|
|
CommandMqtt commandMqtt = new CommandMqtt()
|
|
.setDeviceId(deviceQuality.getDeviceId())
|
|
.setDeviceId(deviceQuality.getDeviceId())
|
|
- .setTemplet(jsonObject.toString());
|
|
|
|
|
|
+ .setTemplet(jsonObject);
|
|
commandMqtts.add(commandMqtt);
|
|
commandMqtts.add(commandMqtt);
|
|
});
|
|
});
|
|
mqttService.senCommand(commandMqtts);
|
|
mqttService.senCommand(commandMqtts);
|