作者 shenhailong

删除报文 承运人问题 出港理货分单判断问题

... ... @@ -44,6 +44,7 @@ public class ReturnUtil {
nmmsCustomResponse.setCusfunctioncode(map.get("functionCode").toString());
}
nmmsCustomResponse.setCusversion("1.0");
nmmsCustomResponse.setBusdate(new Date());
if (map.containsKey("piece")){
nmmsCustomResponse.setBuspiece(Integer.valueOf(map.get("piece").toString()));
... ... @@ -51,6 +52,7 @@ public class ReturnUtil {
if (map.containsKey("weight")){
nmmsCustomResponse.setBusweight(new BigDecimal(map.get("weight").toString()));
}
nmmsCustomResponse.setBustype(map.get("busType").toString());
if (map.containsKey("awba")){
nmmsCustomResponse.setAwbano(map.get("awba").toString());
... ...
... ... @@ -29,7 +29,7 @@
<ID>${awba}</ID>
</TransportContractDocument>
<#if mt['awbh']??>
<#if mt.awbh?default("")?length gt 11>
<#if mt.awbh?default("")?length gt 1>
<AssociatedTransportDocument>
<ID>${awba}_${mt.awbh}</ID>
</AssociatedTransportDocument>
... ...
... ... @@ -13,7 +13,7 @@
<Name>${orgCode}</Name>
</RepresentativePerson>
<BorderTransportMeans>
<JourneyID>${flightNo}/${flightDates}</JourneyID>
<JourneyID>${carrier}${flightNo}/${flightDates}</JourneyID>
</BorderTransportMeans>
<Consignment>
<TransportContractDocument>
... ...
... ... @@ -10,7 +10,7 @@
</Head>
<Declaration>
<BorderTransportMeans>
<JourneyID>${flightNo}/${flightDates}</JourneyID>
<JourneyID>${carrier}${flightNo}/${flightDates}</JourneyID>
</BorderTransportMeans>
<Consignment>
<TransportContractDocument>
... ...
... ... @@ -11,7 +11,7 @@
<Declaration>
<DeclarationOfficeID>${customCode}</DeclarationOfficeID>
<BorderTransportMeans>
<JourneyID>${flightNo}/${flightDates}</JourneyID>
<JourneyID>${carrier}${flightNo}/${flightDates}</JourneyID>
</BorderTransportMeans>
<Consignment>
<TransportContractDocument>
... ...
... ... @@ -11,7 +11,7 @@
<Declaration>
<DeclarationOfficeID>${customCode}</DeclarationOfficeID>
<BorderTransportMeans>
<JourneyID>${flightNo}/${flightDates}</JourneyID>
<JourneyID>${carrier}${flightNo}/${flightDates}</JourneyID>
</BorderTransportMeans>
<Consignment>
<TransportContractDocument>
... ...
... ... @@ -10,7 +10,7 @@
</Head>
<Declaration>
<BorderTransportMeans>
<JourneyID>${flightNo}/${flightDates}</JourneyID>
<JourneyID>${carrier}${flightNo}/${flightDates}</JourneyID>
</BorderTransportMeans>
<Consignment>
<TransportContractDocument>
... ...