voc设备更换接口

This commit is contained in:
gongjiale 2024-12-18 09:30:55 +08:00
parent 140417fcba
commit 711cfb91e3
1 changed files with 2 additions and 2 deletions

View File

@ -103,10 +103,10 @@ public class OutSideServiceImpl implements OutSideService {
* sn: equipmentUId
* ds: vocRtd
* report_time: vocTime
* zt: vocRtd > 5 ? '一级报警' : '正常'
* zt: vocRtd > 4 ? '一级报警' : '正常'
*/
SensorData sensorData = new SensorData();
sensorData.setSn(node.get("equipmentUId").asText());
sensorData.setSn(node.get("equipmentUid").asText());
sensorData.setDs(node.get("vocRtd").asText());
sensorData.setDw("mg/m3");
// "vocTime":"2024-10-30T07:19:20.000+0000" 转为 yyyy-MM-dd HH:mm:ss