|
|
|
@ -5,95 +5,105 @@ import org.apache.commons.lang3.builder.ToStringStyle; |
|
|
|
import com.ruoyi.common.annotation.Excel; |
|
|
|
import com.ruoyi.common.core.domain.BaseEntity; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
/** |
|
|
|
* 实体部署与航线对象 routes |
|
|
|
* |
|
|
|
* |
|
|
|
* @author ruoyi |
|
|
|
* @date 2026-01-14 |
|
|
|
*/ |
|
|
|
public class Routes extends BaseEntity |
|
|
|
{ |
|
|
|
public class Routes extends BaseEntity { |
|
|
|
private static final long serialVersionUID = 1L; |
|
|
|
|
|
|
|
/** 路由ID */ |
|
|
|
/** |
|
|
|
* 路由ID |
|
|
|
*/ |
|
|
|
private Long id; |
|
|
|
|
|
|
|
/** 归属方案ID */ |
|
|
|
/** |
|
|
|
* 归属方案ID |
|
|
|
*/ |
|
|
|
@Excel(name = "归属方案ID") |
|
|
|
private Long scenarioId; |
|
|
|
|
|
|
|
/** 使用的是库里哪个平台 (关联 platform_lib.id) */ |
|
|
|
/** |
|
|
|
* 使用的是库里哪个平台 (关联 platform_lib.id) |
|
|
|
*/ |
|
|
|
@Excel(name = "使用的是库里哪个平台 (关联 platform_lib.id)") |
|
|
|
private Long platformId; |
|
|
|
|
|
|
|
/** 名称 (如: 猎鹰01) */ |
|
|
|
/** |
|
|
|
* 名称 (如: 猎鹰01) |
|
|
|
*/ |
|
|
|
@Excel(name = "名称 (如: 猎鹰01)") |
|
|
|
private String callSign; |
|
|
|
|
|
|
|
/** 实例属性JSON: 覆盖库里的默认值 (如当前初始油量, 挂载配置) */ |
|
|
|
/** |
|
|
|
* 实例属性JSON: 覆盖库里的默认值 (如当前初始油量, 挂载配置) |
|
|
|
*/ |
|
|
|
@Excel(name = "实例属性JSON: 覆盖库里的默认值 (如当前初始油量, 挂载配置)") |
|
|
|
private String attributes; |
|
|
|
|
|
|
|
/** 航点数据JSON数组: [{seq, k_offset, lat, lng, alt, speed, action...}] */ |
|
|
|
private List<RouteWaypoints> waypoints; |
|
|
|
|
|
|
|
public void setId(Long id) |
|
|
|
{ |
|
|
|
public void setId(Long id) { |
|
|
|
this.id = id; |
|
|
|
} |
|
|
|
|
|
|
|
public Long getId() |
|
|
|
{ |
|
|
|
public Long getId() { |
|
|
|
return id; |
|
|
|
} |
|
|
|
|
|
|
|
public void setScenarioId(Long scenarioId) |
|
|
|
{ |
|
|
|
public void setScenarioId(Long scenarioId) { |
|
|
|
this.scenarioId = scenarioId; |
|
|
|
} |
|
|
|
|
|
|
|
public Long getScenarioId() |
|
|
|
{ |
|
|
|
public Long getScenarioId() { |
|
|
|
return scenarioId; |
|
|
|
} |
|
|
|
|
|
|
|
public void setPlatformId(Long platformId) |
|
|
|
{ |
|
|
|
public void setPlatformId(Long platformId) { |
|
|
|
this.platformId = platformId; |
|
|
|
} |
|
|
|
|
|
|
|
public Long getPlatformId() |
|
|
|
{ |
|
|
|
public Long getPlatformId() { |
|
|
|
return platformId; |
|
|
|
} |
|
|
|
|
|
|
|
public void setCallSign(String callSign) |
|
|
|
{ |
|
|
|
public void setCallSign(String callSign) { |
|
|
|
this.callSign = callSign; |
|
|
|
} |
|
|
|
|
|
|
|
public String getCallSign() |
|
|
|
{ |
|
|
|
public String getCallSign() { |
|
|
|
return callSign; |
|
|
|
} |
|
|
|
|
|
|
|
public void setAttributes(String attributes) |
|
|
|
{ |
|
|
|
public void setAttributes(String attributes) { |
|
|
|
this.attributes = attributes; |
|
|
|
} |
|
|
|
|
|
|
|
public String getAttributes() |
|
|
|
{ |
|
|
|
public String getAttributes() { |
|
|
|
return attributes; |
|
|
|
} |
|
|
|
|
|
|
|
public List<RouteWaypoints> getWaypoints() { |
|
|
|
return waypoints; |
|
|
|
} |
|
|
|
|
|
|
|
public void setWaypoints(List<RouteWaypoints> waypoints) { |
|
|
|
this.waypoints = waypoints; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public String toString() { |
|
|
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
|
|
|
.append("id", getId()) |
|
|
|
.append("scenarioId", getScenarioId()) |
|
|
|
.append("platformId", getPlatformId()) |
|
|
|
.append("callSign", getCallSign()) |
|
|
|
.append("attributes", getAttributes()) |
|
|
|
.toString(); |
|
|
|
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) |
|
|
|
.append("id", getId()) |
|
|
|
.append("scenarioId", getScenarioId()) |
|
|
|
.append("platformId", getPlatformId()) |
|
|
|
.append("callSign", getCallSign()) |
|
|
|
.append("attributes", getAttributes()) |
|
|
|
.append("waypoints", getWaypoints()) |
|
|
|
.toString(); |
|
|
|
} |
|
|
|
} |
|
|
|
|