return loa;
}
private EntDbLoadPaxSummary getLoadSummaryBasic(EntDbFlightIdMapping entDbFlightIdMapping, List<?> rawDataList){
EntDbLoadPaxSummary loa = new EntDbLoadPaxSummary();
// set main ufis flightId
// String mainFLightId = dlFlightIdMappingBean.getUfisFlightId(intFlid);
// mainFLightId = mainFLightId.trim();
// get ADID of main flight
Character adid =' ';
if (entDbFlightIdMapping != null){
adid = entDbFlightIdMapping.getArrDepFlag();
loa.setInterfaceFltId(new BigDecimal(entDbFlightIdMapping.getIntFltId()));
}
if ("A".equalsIgnoreCase(String.valueOf(adid))){
loa.setIdArrFlight(entDbFlightIdMapping.getIdFlight());
}else if ("D".equalsIgnoreCase(String.valueOf(adid)) || "B".equalsIgnoreCase(String.valueOf(adid))){
loa.setIdDepFlight(entDbFlightIdMapping.getIdFlight());
}
if (rawDataList != null && rawDataList.size() > 0 && rawDataList.get(0) instanceof EntDbLoadPaxConn ){
EntDbLoadPaxConn entDbPaxConn = (EntDbLoadPaxConn)rawDataList.get(0);
loa.setInterfaceFltId(new BigDecimal(entDbPaxConn.getInterfaceConxFltid()));
// get string flight schedule date time
String strFlightScheduleDateTime = " ";
Date flightScheduleDateTime = entDbPaxConn.getConxFltDate();
DateFormat df = new SimpleDateFormat("yyyymmddhhMMss");
if (flightScheduleDateTime != null){
strFlightScheduleDateTime = df.format(flightScheduleDateTime);
}
// set link flightID
int linkFlightId = 0;
linkFlightId = entDbPaxConn.getIdFlight();
if ("A".equalsIgnoreCase(String.valueOf(adid))){
// linkFlightId = dlAfttabBean.getUrnoFoDepFlight(entDbPaxConn.getAirlineCode(), entDbPaxConn.getFlightNumber().trim(), entDbPaxConn.getFlightNumberSuffice(), strFlightScheduleDateTime);
if (linkFlightId != 0){
loa.setIdDepFlight(new BigDecimal(linkFlightId));
}else{
// loa.setIdDepFlight(" ");
}
}else if ("D".equalsIgnoreCase(String.valueOf(adid)) || "B".equalsIgnoreCase(String.valueOf(adid))){
// linkFlightId = dlAfttabBean.getUrnoFoArrFlight(entDbPaxConn.getAirlineCode(), entDbPaxConn.getFlightNumber().trim(), entDbPaxConn.getFlightNumberSuffice(), strFlightScheduleDateTime);
if (linkFlightId != 0){
loa.setIdArrFlight(new BigDecimal(linkFlightId));
}else{
// loa.setIdArrFlight(" ");
}
}
// set pax connection type
loa.setConxType(entDbPaxConn.getConnType());
}
else{
// // set default value and avoid showing null in database