feat:拓恒航线文件导入默认航点航线
This commit is contained in:
parent
a87cf1f88d
commit
93025e61a2
|
|
@ -121,13 +121,14 @@ public class AirlineFileServiceImpl implements IAirlineFileService {
|
||||||
R<String> fileUrl = remoteFileService.uploadFileByData(UUID.randomUUID().toString(), "waypoints", new String(file.getBytes()));
|
R<String> fileUrl = remoteFileService.uploadFileByData(UUID.randomUUID().toString(), "waypoints", new String(file.getBytes()));
|
||||||
dto.setFileUrl(fileUrl.getData());
|
dto.setFileUrl(fileUrl.getData());
|
||||||
// TODO 拓恒默认0,后续想办法优化中
|
// TODO 拓恒默认0,后续想办法优化中
|
||||||
|
|
||||||
String airVendor = "0";
|
String airVendor = "0";
|
||||||
String airType = "1";
|
String airType = "1";
|
||||||
String airSubType = "0"; // 默认Fm003,的type为1
|
String airSubType = "0"; // 默认Fm003,的type为1
|
||||||
dto.setAirVendor(airVendor);
|
dto.setAirVendor(airVendor);
|
||||||
// 无人机的领域默认为0
|
// 无人机的领域默认为0
|
||||||
dto.setAirType(String.format("0-%s-%s", airType, airSubType));
|
dto.setAirType(String.format("0-%s-%s", airType, airSubType));
|
||||||
|
dto.setType("waypoint");
|
||||||
return dto;
|
return dto;
|
||||||
} else {
|
} else {
|
||||||
throw new BaseException("不支持的文件格式,请上传KMZ或Waypoints文件");
|
throw new BaseException("不支持的文件格式,请上传KMZ或Waypoints文件");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue