#地图相关推送修改

This commit is contained in:
2026-09-21 10:25:49 +08:00
parent 4f7f32eeb2
commit 64f54c4191
4 changed files with 44 additions and 47 deletions

View File

@@ -8,7 +8,7 @@ public class DeviceMapPushDTO {
private double lat;
private double lng;
private double y; //yaw
private double f; //fix_status
private String f; //fix_status
private double a; //altitude
private String s;//status 运行状态
private Long t; //taskId 任务id

View File

@@ -11,12 +11,12 @@ import lombok.Getter;
@Getter
@AllArgsConstructor
public enum DeviceStatusEnum {
offline("0", "离线"),
idle("1", "空闲中"),
working("2", "工作中"),
charging("3", "充电中"),
error("4", "故障");
working("1", "工作中"),
idle("2", "空闲中"),
offline("3", "离线"),
charging("4", "充电中"),
error("5", "故障");
String code;
String message;

View File

@@ -229,7 +229,7 @@ public class HostMessageHandler implements CustomMqttMessageHandler {
dto.setId(deviceId);
// dto.setB();
// dto.setHa();
dto.setF(Double.parseDouble(fix_status.getValue()));
dto.setF(fix_status.getValue());
dto.setS(status.getValue());
dto.setLat(Double.parseDouble(lat.getValue()));
dto.setLng(Double.parseDouble(lng.getValue()));