修改金马推送格式

This commit is contained in:
weidong 2024-02-01 20:44:05 +08:00
parent e38e5a312f
commit abc39fd436
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ import lombok.Data;
@Data @Data
public class KingMaData { public class KingMaData {
String dataTime; String dataTime;
String pointId; String deviceId;
Integer flag; Integer flag;
String projectId; String projectId;

View File

@ -107,8 +107,8 @@ public class KingMaForwarder extends Forwarder{
KingMaData data = new KingMaData(); KingMaData data = new KingMaData();
data.setDataTime(locationRecord.getCreatetime().toString()); data.setDataTime(locationRecord.getCreatetime().toString());
data.setProjectId(projectId); data.setProjectId(projectId);
data.setPointId(locationRecord.getDeviceid()); data.setDeviceId(locationRecord.getDeviceid());
data.setFlag(1); data.setFlag(0);
data.setPhys(new KingMaData.Phys( data.setPhys(new KingMaData.Phys(
NumberUtils.scale(locationRecord.getRpose(), 2), NumberUtils.scale(locationRecord.getRpose(), 2),
NumberUtils.scale(locationRecord.getRposn(), 2), NumberUtils.scale(locationRecord.getRposn(), 2),