|
|
|
@ -30,6 +30,7 @@ import org.locationtech.jts.geom.Coordinate;
|
|
|
|
|
import org.locationtech.jts.geom.Geometry; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
import org.springframework.util.StringUtils; |
|
|
|
|
|
|
|
|
|
import java.time.Instant; |
|
|
|
|
import java.util.ArrayList; |
|
|
|
@ -129,6 +130,8 @@ public class BasLaancService {
|
|
|
|
|
// 비행계획서 등록, 약관 등록, 공문 생성
|
|
|
|
|
@Transactional |
|
|
|
|
public BasLaancLastRs createFlightPlan(BasLaancPlanRq rq) { |
|
|
|
|
if (rq == null || rq.getValidatedRs() == null) throw new CustomException(ErrorCode.NON_VALID_PARAMETER); |
|
|
|
|
|
|
|
|
|
BasLaancValidatedRs basLaancValidatedRs = rq.getValidatedRs(); |
|
|
|
|
|
|
|
|
|
// BasLaancValidatedRs validatedAirspaceRs = this.validationPlanAirspace(rq);
|
|
|
|
@ -267,8 +270,12 @@ public class BasLaancService {
|
|
|
|
|
laancPdfModel.setElev(rq.getAreaList().get(0).getFltElev()); |
|
|
|
|
} |
|
|
|
|
if (rq.getArcrftList() != null && !rq.getArcrftList().isEmpty()) { |
|
|
|
|
laancPdfModel.setArcrftType(rq.getArcrftList().get(0).getArcrftTypeCd().getValue()); |
|
|
|
|
laancPdfModel.setIdntfNum(rq.getArcrftList().get(0).getIdntfNum()); |
|
|
|
|
if (rq.getArcrftList().get(0).getArcrftTypeCd() != null) { |
|
|
|
|
laancPdfModel.setArcrftType(rq.getArcrftList().get(0).getArcrftTypeCd().getValue()); |
|
|
|
|
} |
|
|
|
|
if (StringUtils.hasText(rq.getArcrftList().get(0).getIdntfNum())) { |
|
|
|
|
laancPdfModel.setIdntfNum(rq.getArcrftList().get(0).getIdntfNum()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
laancPdfModel.setBirthDate(InstantUtils.toDateString(cstmrInfo.getBrthdyDate())); |
|
|
|
|
// laancPdfModel.setSchFltStDt(InstantUtils.toDatetimeString(rq.getSchFltStDt()));
|
|
|
|
|