MT2201_D.xml 1.5 KB
<?xml version="1.0" encoding="utf-8"?>
<Manifest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:Declaration:datamodel:standard:CN:MT2201:1">
  <Head th:object="${head}">
    <MessageID th:text="*{messageId}"></MessageID>
    <FunctionCode>3</FunctionCode>
    <MessageType>MT2201</MessageType>
    <SenderID>460470678920X_DXPENT0000460002</SenderID>
    <ReceiverID th:text="*{receiverID}"></ReceiverID>
    <SendTime th:text="*{sendTime}"></SendTime>
    <Version>1.0</Version>
  </Head>
  <Declaration th:object="${flight}">
    <RepresentativePerson>
      <Name>70678920X</Name>
    </RepresentativePerson>
    <BorderTransportMeans>
      <JourneyID th:text="|*{flightNo}/*{#dates.format(flightDate,'yyyyMMdd')}|"></JourneyID>
    </BorderTransportMeans>
    <th:block th:each="bill : ${bills}">
    <Consignment>
      <TransportContractDocument>
        <ID th:text="${bill.billMasterNo}"></ID>
        <ChangeReasonCode>999</ChangeReasonCode>
      </TransportContractDocument>
      <th:block th:if="${bill.billType == 'sub'}">
      <AssociatedTransportDocument>
        <ID th:text="${bill.billSecNo}"></ID>
      </AssociatedTransportDocument>
      </th:block>
    </Consignment>
    </th:block>
    <AdditionalInformation th:object="${reason}">
      <Reason th:utext="*{alterReason}"></Reason>
      <ContactName th:utext="*{contantname}"></ContactName>
      <ContactTel th:text="*{contenttel}"></ContactTel>
    </AdditionalInformation>
  </Declaration>
</Manifest>