rawMsg = msg;
// search flight
if (entDbAircraftOpsMsg != null) {
Tuple deNAEntDbAfttab = null;
String getFlightNumber = null;
String flDate = null;
if (entDbAircraftOpsMsg.getFlightNumber() != null) {
getFlightNumber = entDbAircraftOpsMsg.getFlightNumber()
.substring(0, 2)
+ " "
+ entDbAircraftOpsMsg.getFlightNumber().substring(2);
}
if (entDbAircraftOpsMsg.getFltDate() != null) {
flDate = HpEKConstants.DENA_DATE_FORMAT
.format(entDbAircraftOpsMsg.getFltDate());
}
long startTime = System.currentTimeMillis();
deNAEntDbAfttab = afttabBean.findFlightForLineDeNAX(flDate,
entDbAircraftOpsMsg.getArrDepFlag(), getFlightNumber,
entDbAircraftOpsMsg.getFltRegn());
LOG.debug("search flight from afttab, takes {}",
System.currentTimeMillis() - startTime);
if (deNAEntDbAfttab != null) {
entDbAircraftOpsMsg.setIdFlight(deNAEntDbAfttab.get("urno",
BigDecimal.class));
// entDbAircraftOpsMsg.setIdFlight(deNAEntDbAfttab.getUrno());
try {
String aldtStr = deNAEntDbAfttab.get("aldt", String.class)
.trim();
String atotStr = deNAEntDbAfttab.get("atot", String.class)
.trim();
if (!"".equals(aldtStr)) {
entDbAircraftOpsMsg
.setAldt(HpEKConstants.DENA_DATE_FORMAT
.parse(aldtStr));