修改金马推送格式
This commit is contained in:
parent
e38e5a312f
commit
abc39fd436
@ -9,7 +9,7 @@ import lombok.Data;
|
||||
@Data
|
||||
public class KingMaData {
|
||||
String dataTime;
|
||||
String pointId;
|
||||
String deviceId;
|
||||
Integer flag;
|
||||
String projectId;
|
||||
|
||||
|
||||
@ -107,8 +107,8 @@ public class KingMaForwarder extends Forwarder{
|
||||
KingMaData data = new KingMaData();
|
||||
data.setDataTime(locationRecord.getCreatetime().toString());
|
||||
data.setProjectId(projectId);
|
||||
data.setPointId(locationRecord.getDeviceid());
|
||||
data.setFlag(1);
|
||||
data.setDeviceId(locationRecord.getDeviceid());
|
||||
data.setFlag(0);
|
||||
data.setPhys(new KingMaData.Phys(
|
||||
NumberUtils.scale(locationRecord.getRpose(), 2),
|
||||
NumberUtils.scale(locationRecord.getRposn(), 2),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user