idFltJobAssign = (entFltJobAssign == null)? "0" : entFltJobAssign.getId();
}
checkInDate = sf.parse(convertFlDateToUTC(_input.getCheckInInfo().getCheckInTime()));
msgInTime = sf.parse(convertFlDateToUTC(_input.getMeta().getMessageTime()));
EntDbCrewCheckin entity = null, oldEnt = null;
entity = clsDlCrewCheckInBean.getExistingCrewCheckIn(flNum, legNum,
depNum, _input.getCheckInInfo().getStaffno(), flDate);
if(entity == null){
entity = new EntDbCrewCheckin();
entity.setFlightNumber(flNum);
entity.setLegNum(legNum);
entity.setDepNum(depNum);
entity.setStaffNumber(_input.getCheckInInfo().getStaffno());
entity.setFltDate(flDate);
entity.setCreatedDate(HpUfisCalendar.getCurrentUTCTime());
entity.setCreatedUser(HpEKConstants.BMS_SOURCE);
}
else{
oldEnt = new EntDbCrewCheckin(entity);
entity.setUpdatedDate(HpUfisCalendar.getCurrentUTCTime());
entity.setUpdatedUser(HpEKConstants.BMS_SOURCE);
cmd = UfisASCommands.URT.name();
}
entity.setIdFlight(urno);
entity.setIdFltJobAssign(idFltJobAssign);
entity.setMsgSendDate(msgInTime);
entity.setFltOrigin3(_input.getFlightID().getDepStn());
entity.setFltDest3(_input.getFlightID().getArrStn());
entity.setStaffName(_input.getCheckInInfo().getStaffName());
entity.setStaffOpGrade(_input.getCheckInInfo().getOperatingGrade());
entity.setCheckinDate(checkInDate);
entity.setStaffType(_input.getCheckInInfo().getCrewType());
entity.setSelfCheckinFlag(_input.getCheckInInfo().getSelfCheckIn());
entity.setRecStatus(" ");
entity.setDataSource(HpEKConstants.BMS_SOURCE);
EntDbCrewCheckin entCrewCheckIn = clsDlCrewCheckInBean.merge(entity);
if(entCrewCheckIn != null){
sendNotifyUldInfoToInJson(entCrewCheckIn, oldEnt, cmd);
}
}catch (JAXBException e) {
LOG.error("JAXBContext when unmarshalling... {}", e.getMessage());