You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

121 lines
2.9 KiB

3 months ago
package com.ruoyi.system.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.List;
3 months ago
/**
* 实体部署与航线对象 routes
*
3 months ago
* @author ruoyi
* @date 2026-01-14
*/
public class Routes extends BaseEntity {
3 months ago
private static final long serialVersionUID = 1L;
/**
* 路由ID
*/
3 months ago
private Long id;
/**
* 归属方案ID
*/
3 months ago
@Excel(name = "归属方案ID")
private Long scenarioId;
/**
* 使用的是库里哪个平台 (关联 platform_lib.id)
*/
3 months ago
@Excel(name = "使用的是库里哪个平台 (关联 platform_lib.id)")
private Long platformId;
/**
* 名称 (: 猎鹰01)
*/
3 months ago
@Excel(name = "名称 (如: 猎鹰01)")
private String callSign;
/**
* 实例属性JSON: 覆盖库里的默认值 (如当前初始油量, 挂载配置)
*/
3 months ago
@Excel(name = "实例属性JSON: 覆盖库里的默认值 (如当前初始油量, 挂载配置)")
private String attributes;
private List<RouteWaypoints> waypoints;
3 months ago
2 months ago
/** 关联的平台信息(仅用于 API 返回,非数据库字段) */
private java.util.Map<String, Object> platform;
public void setId(Long id) {
3 months ago
this.id = id;
}
public Long getId() {
3 months ago
return id;
}
public void setScenarioId(Long scenarioId) {
3 months ago
this.scenarioId = scenarioId;
}
public Long getScenarioId() {
3 months ago
return scenarioId;
}
public void setPlatformId(Long platformId) {
3 months ago
this.platformId = platformId;
}
public Long getPlatformId() {
3 months ago
return platformId;
}
public void setCallSign(String callSign) {
3 months ago
this.callSign = callSign;
}
public String getCallSign() {
3 months ago
return callSign;
}
public void setAttributes(String attributes) {
3 months ago
this.attributes = attributes;
}
public String getAttributes() {
3 months ago
return attributes;
}
public List<RouteWaypoints> getWaypoints() {
return waypoints;
}
public void setWaypoints(List<RouteWaypoints> waypoints) {
this.waypoints = waypoints;
}
2 months ago
public java.util.Map<String, Object> getPlatform() {
return platform;
}
public void setPlatform(java.util.Map<String, Object> platform) {
this.platform = platform;
}
3 months ago
@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())
.append("waypoints", getWaypoints())
.toString();
3 months ago
}
}