...
|
...
|
@@ -4,6 +4,7 @@ import com.example.demo.model.T_TXD_FWB; |
|
|
import com.example.demo.model.T_TXD_FWBPARTY;
|
|
|
import com.example.demo.service.T_TXD_FWB_Service;
|
|
|
import com.example.demo.util.XML.XML2ENTITY;
|
|
|
import com.example.demo.util.XML.XMLXPath;
|
|
|
import org.dom4j.Document;
|
|
|
import org.dom4j.DocumentException;
|
|
|
import org.dom4j.DocumentHelper;
|
...
|
...
|
@@ -38,207 +39,135 @@ public class FWBDemo { |
|
|
String xml = "<MSG>\n" +
|
|
|
"\t<META>\n" +
|
|
|
"\t\t<SNDR>TXD</SNDR>\n" +
|
|
|
"\t\t<DDTM>20181114040536</DDTM>\n" +
|
|
|
"\t\t<DDTM>20181210085229</DDTM>\n" +
|
|
|
"\t\t<TYPE>DFME</TYPE>\n" +
|
|
|
"\t\t<STYP>FWB</STYP>\n" +
|
|
|
"\t\t<SEQN>4643187</SEQN>\n" +
|
|
|
"\t\t<STYP>UFOH</STYP>\n" +
|
|
|
"\t\t<SEQN>75532140</SEQN>\n" +
|
|
|
"\t</META>\n" +
|
|
|
"\t<MasterConsignment>\n" +
|
|
|
"\t\t<ID>880-83213594</ID>\n" +
|
|
|
"\t\t<TypeCode>741</TypeCode>\n" +
|
|
|
"\t\t<NilCarriageValueIndicator>false</NilCarriageValueIndicator>\n" +
|
|
|
"\t\t<DeclaredValueForCarriageAmount currencyID=\"CNY\">0</DeclaredValueForCarriageAmount>\n" +
|
|
|
"\t\t<NilCustomsValueIndicator>true</NilCustomsValueIndicator>\n" +
|
|
|
"\t\t<DeclaredValueForCustomsAmount currencyID=\"CNY\">NCV</DeclaredValueForCustomsAmount>\n" +
|
|
|
"\t\t<NilInsuranceValueIndicator>true</NilInsuranceValueIndicator>\n" +
|
|
|
"\t\t<InsuranceValueAmount currencyID=\"CNY\">XXX</InsuranceValueAmount>\n" +
|
|
|
"\t\t<TotalChargePrepaidIndicator>true</TotalChargePrepaidIndicator>\n" +
|
|
|
"\t\t<WeightTotalChargeAmount currencyID=\"CNY\">502</WeightTotalChargeAmount>\n" +
|
|
|
"\t\t<ValuationTotalChargeAmount currencyID=\"CNY\">0.00</ValuationTotalChargeAmount>\n" +
|
|
|
"\t\t<TotalDisbursementPrepaidIndicator>true</TotalDisbursementPrepaidIndicator>\n" +
|
|
|
"\t\t<TotalPrepaidChargeAmount currencyID=\"CNY\">613.60</TotalPrepaidChargeAmount>\n" +
|
|
|
"\t\t<TotalCollectChargeAmount currencyID=\"CNY\">0</TotalCollectChargeAmount>\n" +
|
|
|
"\t\t<DestinationCurrencyTotalCollectChargeAmount currencyID=\"CNY\">0</DestinationCurrencyTotalCollectChargeAmount>\n" +
|
|
|
"\t\t<IncludedTareGrossWeightMeasure unitCode=\"KGM\">558.0</IncludedTareGrossWeightMeasure>\n" +
|
|
|
"\t\t<NetWeightMeasure/>\n" +
|
|
|
"\t\t<GrossVolumeMeasure unitCode=\"MTQ\">4.44</GrossVolumeMeasure>\n" +
|
|
|
"\t\t<TotalChargeableWeightMeasure unitCode=\"KGM\">558.0</TotalChargeableWeightMeasure>\n" +
|
|
|
"\t\t<ConsignmentItemQuantity>1</ConsignmentItemQuantity>\n" +
|
|
|
"\t\t<TotalPieceQuantity>74</TotalPieceQuantity>\n" +
|
|
|
"\t\t<TotalLoadedPackageQuantity>74</TotalLoadedPackageQuantity>\n" +
|
|
|
"\t\t<PackageInfo>编织袋</PackageInfo>\n" +
|
|
|
"\t\t<FreightRateTypeCode>Q</FreightRateTypeCode>\n" +
|
|
|
"\t\t<ConsignorParty>\n" +
|
|
|
"\t\t\t<PrimaryID schemeAgencyID=\"1\">HNHH</PrimaryID>\n" +
|
|
|
"\t\t\t<Name>河南汇海物流有限公司</Name>\n" +
|
|
|
"\t\t\t<AccountID>INFOSKY:NULL</AccountID>\n" +
|
|
|
"\t\t\t<PostalStructuredAddress>\n" +
|
|
|
"\t\t\t\t<StreetName>郑州</StreetName>\n" +
|
|
|
"\t\t\t\t<CityName>CGO</CityName>\n" +
|
|
|
"\t\t\t\t<CountryID>CN</CountryID>\n" +
|
|
|
"\t\t\t\t<SpecifiedAddressLocation/>\n" +
|
|
|
"\t\t\t</PostalStructuredAddress>\n" +
|
|
|
"\t\t\t<SpecifiedCargoAgentLocation/>\n" +
|
|
|
"\t\t\t<DefinedTradeContact>\n" +
|
|
|
"\t\t\t\t<DirectTelephoneCommunication>\n" +
|
|
|
"\t\t\t\t\t<CompleteNumber>CGO</CompleteNumber>\n" +
|
|
|
"\t\t\t\t</DirectTelephoneCommunication>\n" +
|
|
|
"\t\t\t</DefinedTradeContact>\n" +
|
|
|
"\t\t</ConsignorParty>\n" +
|
|
|
"\t\t<ConsigneeParty>\n" +
|
|
|
"\t\t\t<PrimaryID schemeAgencyID=\"2\">SK</PrimaryID>\n" +
|
|
|
"\t\t\t<Name>海南顺丰速运有限公司</Name>\n" +
|
|
|
"\t\t\t<AccountID>INFOSKY:NULL</AccountID>\n" +
|
|
|
"\t\t\t<PostalStructuredAddress>\n" +
|
|
|
"\t\t\t\t<StreetName>机场自提</StreetName>\n" +
|
|
|
"\t\t\t\t<CityName>HAK</CityName>\n" +
|
|
|
"\t\t\t\t<CountryID>CN</CountryID>\n" +
|
|
|
"\t\t\t\t<SpecifiedAddressLocation/>\n" +
|
|
|
"\t\t\t</PostalStructuredAddress>\n" +
|
|
|
"\t\t\t<SpecifiedCargoAgentLocation/>\n" +
|
|
|
"\t\t\t<DefinedTradeContact/>\n" +
|
|
|
"\t\t</ConsigneeParty>\n" +
|
|
|
"\t\t<FreightForwarderParty>\n" +
|
|
|
"\t\t\t<Name>CGOSA</Name>\n" +
|
|
|
"\t\t\t<AccountID>INFOSKY:NULL</AccountID>\n" +
|
|
|
"\t\t\t<PostalStructuredAddress>\n" +
|
|
|
"\t\t\t\t<CityName>CGO</CityName>\n" +
|
|
|
"\t\t\t\t<CountryID>CN</CountryID>\n" +
|
|
|
"\t\t\t\t<SpecifiedAddressLocation/>\n" +
|
|
|
"\t\t\t</PostalStructuredAddress>\n" +
|
|
|
"\t\t\t<SpecifiedCargoAgentLocation/>\n" +
|
|
|
"\t\t\t<DefinedTradeContact/>\n" +
|
|
|
"\t\t</FreightForwarderParty>\n" +
|
|
|
"\t\t<AssociatedParty>\n" +
|
|
|
"\t\t\t<PrimaryID/>\n" +
|
|
|
"\t\t\t<Name>CGO</Name>\n" +
|
|
|
"\t\t\t<AccountID>INFOSKY:NULL</AccountID>\n" +
|
|
|
"\t\t\t<RoleCode>AGT</RoleCode>\n" +
|
|
|
"\t\t\t<Role>Agent</Role>\n" +
|
|
|
"\t\t\t<PostalStructuredAddress>\n" +
|
|
|
"\t\t\t\t<CityName>CGO</CityName>\n" +
|
|
|
"\t\t\t\t<CountryID>CN</CountryID>\n" +
|
|
|
"\t\t\t\t<SpecifiedAddressLocation/>\n" +
|
|
|
"\t\t\t</PostalStructuredAddress>\n" +
|
|
|
"\t\t\t<SpecifiedCargoAgentLocation/>\n" +
|
|
|
"\t\t\t<DefinedTradeContact/>\n" +
|
|
|
"\t\t</AssociatedParty>\n" +
|
|
|
"\t\t<AssociatedParty>\n" +
|
|
|
"\t\t\t<PrimaryID/>\n" +
|
|
|
"\t\t\t<Name>CGOHA</Name>\n" +
|
|
|
"\t\t\t<AccountID>INFOSKY:NULL</AccountID>\n" +
|
|
|
"\t\t\t<RoleCode>GHA</RoleCode>\n" +
|
|
|
"\t\t\t<Role>Ground Handling Agent</Role>\n" +
|
|
|
"\t\t\t<PostalStructuredAddress>\n" +
|
|
|
"\t\t\t\t<CityName>CGO</CityName>\n" +
|
|
|
"\t\t\t\t<CountryID>CN</CountryID>\n" +
|
|
|
"\t\t\t\t<SpecifiedAddressLocation/>\n" +
|
|
|
"\t\t\t</PostalStructuredAddress>\n" +
|
|
|
"\t\t\t<SpecifiedCargoAgentLocation/>\n" +
|
|
|
"\t\t\t<DefinedTradeContact/>\n" +
|
|
|
"\t\t</AssociatedParty>\n" +
|
|
|
"\t\t<OriginLocation>\n" +
|
|
|
"\t\t\t<ID>CGO</ID>\n" +
|
|
|
"\t\t</OriginLocation>\n" +
|
|
|
"\t\t<FinalDestinationLocation>\n" +
|
|
|
"\t\t\t<ID>HAK</ID>\n" +
|
|
|
"\t\t</FinalDestinationLocation>\n" +
|
|
|
"\t\t<SpecifiedLogisticsTransportMovement>\n" +
|
|
|
"\t\t\t<StageCode>HU7304/Nov14</StageCode>\n" +
|
|
|
"\t\t\t<ModeCode>4</ModeCode>\n" +
|
|
|
"\t\t\t<Mode>Air Transport</Mode>\n" +
|
|
|
"\t\t\t<ID>HU7304</ID>\n" +
|
|
|
"\t\t\t<SequenceNumeric>1</SequenceNumeric>\n" +
|
|
|
"\t\t\t<UsedLogisticsTransportMeans/>\n" +
|
|
|
"\t\t\t<ArrivalEvent>\n" +
|
|
|
"\t\t\t\t<OccurrenceArrivalLocation>\n" +
|
|
|
"\t\t\t\t\t<ID>HAK</ID>\n" +
|
|
|
"\t\t\t\t</OccurrenceArrivalLocation>\n" +
|
|
|
"\t\t\t</ArrivalEvent>\n" +
|
|
|
"\t\t\t<DepartureEvent>\n" +
|
|
|
"\t\t\t\t<ScheduledOccurrenceDateTime>2018-11-14T00:00:00+08:00</ScheduledOccurrenceDateTime>\n" +
|
|
|
"\t\t\t\t<OccurrenceDepartureLocation>\n" +
|
|
|
"\t\t\t\t\t<ID>CGO</ID>\n" +
|
|
|
"\t\t\t\t</OccurrenceDepartureLocation>\n" +
|
|
|
"\t\t\t</DepartureEvent>\n" +
|
|
|
"\t\t</SpecifiedLogisticsTransportMovement>\n" +
|
|
|
"\t\t<IncludedAccountingNote>\n" +
|
|
|
"\t\t\t<ContentCode>20010003普通</ContentCode>\n" +
|
|
|
"\t\t\t<Content>20010003普通</Content>\n" +
|
|
|
"\t\t</IncludedAccountingNote>\n" +
|
|
|
"\t\t<AssociatedConsignmentCustomsProcedure/>\n" +
|
|
|
"\t\t<ApplicableTradeCurrencyExchange>\n" +
|
|
|
"\t\t\t<SourceCurrencyCode>CNY</SourceCurrencyCode>\n" +
|
|
|
"\t\t\t<TargetCurrencyCode>CNY</TargetCurrencyCode>\n" +
|
|
|
"\t\t\t<MarketID>S</MarketID>\n" +
|
|
|
"\t\t\t<ConversionRate>1</ConversionRate>\n" +
|
|
|
"\t\t</ApplicableTradeCurrencyExchange>\n" +
|
|
|
"\t\t<ApplicableLogisticsServiceCharge/>\n" +
|
|
|
"\t\t<ApplicableLogisticsAllowanceCharge>\n" +
|
|
|
"\t\t\t<ID>MY</ID>\n" +
|
|
|
"\t\t\t<Reason>燃油费</Reason>\n" +
|
|
|
"\t\t\t<ActualAmount currencyID=\"CNY\">111.6</ActualAmount>\n" +
|
|
|
"\t\t\t<PartyTypeCode>C</PartyTypeCode>\n" +
|
|
|
"\t\t</ApplicableLogisticsAllowanceCharge>\n" +
|
|
|
"\t\t<SignatoryCarrierAuthentication>\n" +
|
|
|
"\t\t\t<ActualDateTime>2018-11-14T04:02:00</ActualDateTime>\n" +
|
|
|
"\t\t\t<Signatory>牛青</Signatory>\n" +
|
|
|
"\t\t\t<IssueAuthenticationLocation>\n" +
|
|
|
"\t\t\t\t<Name>郑州</Name>\n" +
|
|
|
"\t\t\t</IssueAuthenticationLocation>\n" +
|
|
|
"\t\t</SignatoryCarrierAuthentication>\n" +
|
|
|
"\t\t<IncludedMasterConsignmentItem>\n" +
|
|
|
"\t\t\t<SequenceNumeric>1</SequenceNumeric>\n" +
|
|
|
"\t\t\t<TypeCode listAgencyID=\"1\">PH</TypeCode>\n" +
|
|
|
"\t\t\t<GrossWeightMeasure unitCode=\"KGM\">558.0</GrossWeightMeasure>\n" +
|
|
|
"\t\t\t<GrossVolumeMeasure unitCode=\"MTQ\">4.44</GrossVolumeMeasure>\n" +
|
|
|
"\t\t\t<PieceQuantity>74</PieceQuantity>\n" +
|
|
|
"\t\t\t<TareWeightMeasure unitCode=\"KGM\">558.0</TareWeightMeasure>\n" +
|
|
|
"\t\t\t<NatureIdentificationTransportCargo>\n" +
|
|
|
"\t\t\t\t<Identification>手机机头(无电池) 电子主板 上衣 茶叶 大枣 皮带 票证 运动鞋 背包 灯座</Identification>\n" +
|
|
|
"\t\t\t</NatureIdentificationTransportCargo>\n" +
|
|
|
"\t\t\t<OriginCountry/>\n" +
|
|
|
"\t\t\t<AssociatedUnitLoadTransportEquipment>\n" +
|
|
|
"\t\t\t\t<OperatingParty/>\n" +
|
|
|
"\t\t\t</AssociatedUnitLoadTransportEquipment>\n" +
|
|
|
"\t\t\t<TransportLogisticsPackage>\n" +
|
|
|
"\t\t\t\t<ItemQuantity>74</ItemQuantity>\n" +
|
|
|
"\t\t\t\t<LinearSpatialDimension>\n" +
|
|
|
"\t\t\t\t\t<Description>true</Description>\n" +
|
|
|
"\t\t\t\t\t<WidthMeasure unitCode=\"CMT\">40</WidthMeasure>\n" +
|
|
|
"\t\t\t\t\t<LengthMeasure unitCode=\"CMT\">30</LengthMeasure>\n" +
|
|
|
"\t\t\t\t\t<HeightMeasure unitCode=\"CMT\">50</HeightMeasure>\n" +
|
|
|
"\t\t\t\t</LinearSpatialDimension>\n" +
|
|
|
"\t\t\t</TransportLogisticsPackage>\n" +
|
|
|
"\t\t\t<ApplicableFreightRateServiceCharge>\n" +
|
|
|
"\t\t\t\t<CategoryCode>Q</CategoryCode>\n" +
|
|
|
"\t\t\t\t<CommodityItemID>P</CommodityItemID>\n" +
|
|
|
"\t\t\t\t<ChargeableWeightMeasure unitCode=\"KGM\">558.0</ChargeableWeightMeasure>\n" +
|
|
|
"\t\t\t\t<AppliedRate>0.9</AppliedRate>\n" +
|
|
|
"\t\t\t\t<AppliedAmount currencyID=\"CNY\">502</AppliedAmount>\n" +
|
|
|
"\t\t\t</ApplicableFreightRateServiceCharge>\n" +
|
|
|
"\t\t\t<SpecifiedRateCombinationPointLocation/>\n" +
|
|
|
"\t\t</IncludedMasterConsignmentItem>\n" +
|
|
|
"\t\t<ReportedStatus>\n" +
|
|
|
"\t\t\t<ReasonCode>FWB</ReasonCode>\n" +
|
|
|
"\t\t\t<EventTime>\n" +
|
|
|
"\t\t\t\t<OccurrenceDateTime>2018-11-14T04:03:02+08:00</OccurrenceDateTime>\n" +
|
|
|
"\t\t\t\t<DateTimeTypeCode>Actual</DateTimeTypeCode>\n" +
|
|
|
"\t\t\t</EventTime>\n" +
|
|
|
"\t\t\t<SpecifiedLocation>\n" +
|
|
|
"\t<ConsignmentStatus>\n" +
|
|
|
"\t\t<MasterConsignment>\n" +
|
|
|
"\t\t\t<GrossWeightMeasure unitCode=\"KGM\">3877</GrossWeightMeasure>\n" +
|
|
|
"\t\t\t<TotalGrossWeightMeasure unitCode=\"KGM\">3877</TotalGrossWeightMeasure>\n" +
|
|
|
"\t\t\t<ChargeableWeightMeasure unitCode=\"KGM\">4308.69</ChargeableWeightMeasure>\n" +
|
|
|
"\t\t\t<PieceQuantity>12</PieceQuantity>\n" +
|
|
|
"\t\t\t<TotalPieceQuantity>12</TotalPieceQuantity>\n" +
|
|
|
"\t\t\t<TransportSplitDescription>T</TransportSplitDescription>\n" +
|
|
|
"\t\t\t<TransportContractDocument>\n" +
|
|
|
"\t\t\t\t<ID>172-32971562</ID>\n" +
|
|
|
"\t\t\t\t<Name>Air Waybill</Name>\n" +
|
|
|
"\t\t\t\t<TypeCode>741</TypeCode>\n" +
|
|
|
"\t\t\t</TransportContractDocument>\n" +
|
|
|
"\t\t\t<OriginLocation>\n" +
|
|
|
"\t\t\t\t<ID>CGO</ID>\n" +
|
|
|
"\t\t\t</SpecifiedLocation>\n" +
|
|
|
"\t\t</ReportedStatus>\n" +
|
|
|
"\t</MasterConsignment>\n" +
|
|
|
"\t\t\t\t<Name>ZHENGZHOU</Name>\n" +
|
|
|
"\t\t\t</OriginLocation>\n" +
|
|
|
"\t\t\t<FinalDestinationLocation>\n" +
|
|
|
"\t\t\t\t<ID>ORD</ID>\n" +
|
|
|
"\t\t\t\t<Name>Chicago</Name>\n" +
|
|
|
"\t\t\t</FinalDestinationLocation>\n" +
|
|
|
"\t\t\t<ReportedStatus>\n" +
|
|
|
"\t\t\t\t<ReasonCode>FOH</ReasonCode>\n" +
|
|
|
"\t\t\t\t<EventTime>\n" +
|
|
|
"\t\t\t\t\t<OccurrenceDateTime>2018-12-09T17:48:10+08:00</OccurrenceDateTime>\n" +
|
|
|
"\t\t\t\t\t<DateTimeTypeCode>Actual</DateTimeTypeCode>\n" +
|
|
|
"\t\t\t\t</EventTime>\n" +
|
|
|
"\t\t\t\t<SpecifiedLocation>\n" +
|
|
|
"\t\t\t\t\t<ID>CGO</ID>\n" +
|
|
|
"\t\t\t\t\t<Name/>\n" +
|
|
|
"\t\t\t\t\t<TypeCode>Airport</TypeCode>\n" +
|
|
|
"\t\t\t\t</SpecifiedLocation>\n" +
|
|
|
"\t\t\t\t<AssociatedStatusConsignment>\n" +
|
|
|
"\t\t\t\t\t<GrossWeightMeasure unitCode=\"KGM\">3877</GrossWeightMeasure>\n" +
|
|
|
"\t\t\t\t\t<GrossVolumeMeasure unitCode=\"MTQ\">25.85</GrossVolumeMeasure>\n" +
|
|
|
"\t\t\t\t\t<ChargeableWeightMeasure unitCode=\"KGM\">4308.69</ChargeableWeightMeasure>\n" +
|
|
|
"\t\t\t\t\t<DensityGroupCode>MC</DensityGroupCode>\n" +
|
|
|
"\t\t\t\t\t<PieceQuantity>12</PieceQuantity>\n" +
|
|
|
"\t\t\t\t\t<TransportSplitDescription>T</TransportSplitDescription>\n" +
|
|
|
"\t\t\t\t\t<SpecifiedLogisticsTransportMovement>\n" +
|
|
|
"\t\t\t\t\t\t<ID>CV9761</ID>\n" +
|
|
|
"\t\t\t\t\t\t<UsedLogisticsTransportMeans>\n" +
|
|
|
"\t\t\t\t\t\t\t<Name>B747E</Name>\n" +
|
|
|
"\t\t\t\t\t\t\t<Type>XXX</Type>\n" +
|
|
|
"\t\t\t\t\t\t</UsedLogisticsTransportMeans>\n" +
|
|
|
"\t\t\t\t\t\t<ArrivalEvent>\n" +
|
|
|
"\t\t\t\t\t\t\t<ArrivalOccurrenceDateTime>2018-12-11T12:30:00+08:00</ArrivalOccurrenceDateTime>\n" +
|
|
|
"\t\t\t\t\t\t\t<ArrivalDateTimeTypeCode>Schedual</ArrivalDateTimeTypeCode>\n" +
|
|
|
"\t\t\t\t\t\t\t<OccurrenceArrivalLocation>\n" +
|
|
|
"\t\t\t\t\t\t\t\t<ID/>\n" +
|
|
|
"\t\t\t\t\t\t\t\t<Name/>\n" +
|
|
|
"\t\t\t\t\t\t\t\t<TypeCode>Airport</TypeCode>\n" +
|
|
|
"\t\t\t\t\t\t\t\t<FirstArrivalCountryID/>\n" +
|
|
|
"\t\t\t\t\t\t\t</OccurrenceArrivalLocation>\n" +
|
|
|
"\t\t\t\t\t\t</ArrivalEvent>\n" +
|
|
|
"\t\t\t\t\t\t<DepartureEvent>\n" +
|
|
|
"\t\t\t\t\t\t\t<DepartureOccurrenceDateTime>2018-12-11T04:30:00+08:00</DepartureOccurrenceDateTime>\n" +
|
|
|
"\t\t\t\t\t\t\t<DepartureDateTimeTypeCode>Schedual</DepartureDateTimeTypeCode>\n" +
|
|
|
"\t\t\t\t\t\t\t<OccurrenceDepartureLocation>\n" +
|
|
|
"\t\t\t\t\t\t\t\t<ID>CGO</ID>\n" +
|
|
|
"\t\t\t\t\t\t\t\t<Name>ZHENGZHOU</Name>\n" +
|
|
|
"\t\t\t\t\t\t\t\t<TypeCode>Airport</TypeCode>\n" +
|
|
|
"\t\t\t\t\t\t\t\t<FirstArrivalCountryID>CN</FirstArrivalCountryID>\n" +
|
|
|
"\t\t\t\t\t\t\t</OccurrenceDepartureLocation>\n" +
|
|
|
"\t\t\t\t\t\t</DepartureEvent>\n" +
|
|
|
"\t\t\t\t\t\t<CarrierParty>\n" +
|
|
|
"\t\t\t\t\t\t\t<PrimaryID schemeAgencyID=\"3\">CV</PrimaryID>\n" +
|
|
|
"\t\t\t\t\t\t</CarrierParty>\n" +
|
|
|
"\t\t\t\t\t\t<SpecifiedLocation>\n" +
|
|
|
"\t\t\t\t\t\t\t<ID>CGO</ID>\n" +
|
|
|
"\t\t\t\t\t\t\t<Name>ZHENGZHOU</Name>\n" +
|
|
|
"\t\t\t\t\t\t\t<TypeCode>Airport</TypeCode>\n" +
|
|
|
"\t\t\t\t\t\t</SpecifiedLocation>\n" +
|
|
|
"\t\t\t\t\t\t<SpecifiedEvent>\n" +
|
|
|
"\t\t\t\t\t\t\t<OccurrenceDateTime>2018-12-09T17:48:10+08:00</OccurrenceDateTime>\n" +
|
|
|
"\t\t\t\t\t\t\t<DateTimeTypeCode>Actual</DateTimeTypeCode>\n" +
|
|
|
"\t\t\t\t\t\t</SpecifiedEvent>\n" +
|
|
|
"\t\t\t\t\t</SpecifiedLogisticsTransportMovement>\n" +
|
|
|
"\t\t\t\t\t<StorageLocations>\n" +
|
|
|
"\t\t\t\t\t\t<LocationInfomation>\n" +
|
|
|
"\t\t\t\t\t\t\t<Location>KQ/KQ</Location>\n" +
|
|
|
"\t\t\t\t\t\t\t<PieceQuantity>12</PieceQuantity>\n" +
|
|
|
"\t\t\t\t\t\t\t<GrossWeightMeasure unitCode=\"KGM\">3877</GrossWeightMeasure>\n" +
|
|
|
"\t\t\t\t\t\t</LocationInfomation>\n" +
|
|
|
"\t\t\t\t\t</StorageLocations>\n" +
|
|
|
"\t\t\t\t\t<RecievedFromParty>\n" +
|
|
|
"\t\t\t\t\t\t<Name>DSV AIR SEA CO LTD 1</Name>\n" +
|
|
|
"\t\t\t\t\t\t<PostalStructuredAddress>\n" +
|
|
|
"\t\t\t\t\t\t\t<StreetName/>\n" +
|
|
|
"\t\t\t\t\t\t</PostalStructuredAddress>\n" +
|
|
|
"\t\t\t\t\t\t<DefinedTradeContact>\n" +
|
|
|
"\t\t\t\t\t\t\t<DirectTelephoneCommunication>\n" +
|
|
|
"\t\t\t\t\t\t\t\t<CompleteNumber/>\n" +
|
|
|
"\t\t\t\t\t\t\t</DirectTelephoneCommunication>\n" +
|
|
|
"\t\t\t\t\t\t</DefinedTradeContact>\n" +
|
|
|
"\t\t\t\t\t</RecievedFromParty>\n" +
|
|
|
"\t\t\t\t\t<IncludedMasterConsignmentItem>\n" +
|
|
|
"\t\t\t\t\t\t<TypeCode listAgencyID=\"1\">CONSOL</TypeCode>\n" +
|
|
|
"\t\t\t\t\t</IncludedMasterConsignmentItem>\n" +
|
|
|
"\t\t\t\t\t<IncludedCustomsNote>\n" +
|
|
|
"\t\t\t\t\t\t<ContentCode>CD</ContentCode>\n" +
|
|
|
"\t\t\t\t\t\t<Content>P-CGOXH-ICUSTOMS0000</Content>\n" +
|
|
|
"\t\t\t\t\t\t<SubjectCode/>\n" +
|
|
|
"\t\t\t\t\t\t<CountryID/>\n" +
|
|
|
"\t\t\t\t\t\t<UtilizedUnitLoadTransportEquipment/>\n" +
|
|
|
"\t\t\t\t\t</IncludedCustomsNote>\n" +
|
|
|
"\t\t\t\t</AssociatedStatusConsignment>\n" +
|
|
|
"\t\t\t</ReportedStatus>\n" +
|
|
|
"\t\t</MasterConsignment>\n" +
|
|
|
"\t</ConsignmentStatus>\n" +
|
|
|
"</MSG>";
|
|
|
|
|
|
Document doc = DocumentHelper.parseText(xml);
|
|
|
|
|
|
// String currencyID = XMLXPath.getSinglePathProperty(doc,"//MSG/MasterConsignment/DeclaredValueForCarriageAmount/@currencyID");
|
|
|
|
|
|
String measure = XMLXPath.getSingleValueByPath(doc,"//MSG/ConsignmentStatus/MasterConsignment/GrossWeightMeasure/@unitCode");
|
|
|
String measure1 = XMLXPath.getSingleValueByPath(doc,"//MSG/ConsignmentStatus/MasterConsignment/GrossWeightMeasure");
|
|
|
|
|
|
long beginTime = System.currentTimeMillis();
|
|
|
|
|
|
try{
|
|
|
XML2ENTITY xml2ENTITY = new XML2ENTITY();
|
|
|
Map<String, Object> map = xml2ENTITY.Dom2Map(doc);
|
|
|
Map<String, Object> map = xml2ENTITY.Dom2Map_propety(doc);
|
|
|
T_TXD_FWB fwb= new T_TXD_FWB();
|
|
|
//fwb.setFid(getBigDecimal(1));
|
|
|
fwb.setMessageBakId(getBigDecimal(1));
|
...
|
...
|
|