feat:拓恒航线文件导入默认航点航线

This commit is contained in:
gyb 2026-03-20 11:13:07 +08:00
parent a87cf1f88d
commit 93025e61a2
1 changed files with 2 additions and 1 deletions

View File

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