|
@@ -140,7 +140,7 @@ abstract class ImfMsgAbstract<T extends ImfMsgType> implements ImfMsg {
|
|
|
public String getStrVal(String expression) {
|
|
|
XPath xpath = getXpath();
|
|
|
Object evaluate = xpath.evaluate(expression, getXmlDocument(), XPathConstants.STRING);
|
|
|
- return String.valueOf(evaluate);
|
|
|
+ return String.valueOf(evaluate).replace("null", "");
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -302,8 +302,8 @@ abstract class ImfMsgAbstract<T extends ImfMsgType> implements ImfMsg {
|
|
|
* @param airPosition 机位
|
|
|
*/
|
|
|
void adminDfdlCopyToAirPosition(AdminDfdlList adminDfdlList, AdminAircraftPosition airPosition) {
|
|
|
- airPosition.setFlightSole(String.valueOf(adminDfdlList.getFlid()));
|
|
|
- airPosition.setFlightAfid(String.valueOf(adminDfdlList.getAfid()));
|
|
|
+ airPosition.setFlightSole(String.valueOf(adminDfdlList.getFlid()).replace("null", ""));
|
|
|
+ airPosition.setFlightAfid(String.valueOf(adminDfdlList.getAfid()).replace("null", ""));
|
|
|
airPosition.setFlightNum(adminDfdlList.getAwcd() + "-" + adminDfdlList.getFlno());
|
|
|
airPosition.setAircraftNum(adminDfdlList.getCfno());
|
|
|
airPosition.setEstr(adminDfdlList.getEstr());
|
|
@@ -326,20 +326,20 @@ abstract class ImfMsgAbstract<T extends ImfMsgType> implements ImfMsg {
|
|
|
}
|
|
|
Object estr = map.get("ESTR");
|
|
|
if (estr != null) {
|
|
|
- adminDfdlList.setEstr(strToDate(String.valueOf(estr)));
|
|
|
+ adminDfdlList.setEstr(strToDate(String.valueOf(estr).replace("null", "")));
|
|
|
}
|
|
|
Object eend = map.get("EEND");
|
|
|
if (eend != null) {
|
|
|
- adminDfdlList.setEend(strToDate(String.valueOf(eend)));
|
|
|
+ adminDfdlList.setEend(strToDate(String.valueOf(eend).replace("null", "")));
|
|
|
}
|
|
|
|
|
|
Object rstr = map.get("RSTR");
|
|
|
if (rstr != null) {
|
|
|
- adminDfdlList.setRstr(strToDate(String.valueOf(rstr)));
|
|
|
+ adminDfdlList.setRstr(strToDate(String.valueOf(rstr).replace("null", "")));
|
|
|
}
|
|
|
Object rend = map.get("REND");
|
|
|
if (rend != null) {
|
|
|
- adminDfdlList.setRend(strToDate(String.valueOf(rend)));
|
|
|
+ adminDfdlList.setRend(strToDate(String.valueOf(rend).replace("null", "")));
|
|
|
}
|
|
|
}
|
|
|
|