...
|
...
|
@@ -12,6 +12,7 @@ import com.agent.util.WaybillUtils; |
|
|
import com.agent.vo.ResponseModel;
|
|
|
import com.agent.vo.agent.CommodityVo;
|
|
|
import com.agent.vo.agent.ManifestVo;
|
|
|
import com.agent.vo.agent.SDVo;
|
|
|
import com.agent.xml.XmlBuildTask;
|
|
|
import com.agent.xml.common.XmlHead;
|
|
|
import com.agent.xml.common.XmlUtil;
|
...
|
...
|
@@ -2675,6 +2676,32 @@ public class ManifestController extends BasicController { |
|
|
sdCargoNameService.save(sdCargoNameEntity);
|
|
|
}
|
|
|
securityDeclarationService.save(sd);
|
|
|
|
|
|
// 生成报文并且发送
|
|
|
String ndlrPath = MessageKit.getMessagePath(MessageType.NDLR);
|
|
|
|
|
|
//存放数据Vo
|
|
|
SDVo sdVo = new SDVo();
|
|
|
sdVo.setSd_waybill(wbm);
|
|
|
sdVo.setSd_cargo_agent_name(arr.get(27));
|
|
|
sdVo.setSd_cargo_shipper_name(arr.get(28));
|
|
|
sdVo.setSd_iata_number(arr.get(29));
|
|
|
sdVo.setSd_transport_certificate(arr.get(30));
|
|
|
sdVo.setSd_transportation_prove(arr.get(31));
|
|
|
//品名
|
|
|
sdVo.setSd_cargo_name(arr.get(33));
|
|
|
//货物类型
|
|
|
sdVo.setSd_cargo_type(arr.get(32));
|
|
|
|
|
|
//预配信息
|
|
|
sdVo.setFlightno(arr.get(3).substring(2));
|
|
|
sdVo.setFlightdate(parse);
|
|
|
sdVo.setCarrier(arr.get(3).substring(0, 2));
|
|
|
sdVo.setTotalpiece(arr.get(10));
|
|
|
sdVo.setTotalweight(arr.get(11));
|
|
|
sdVo.setDestinationstation(arr.get(7));
|
|
|
new XmlBuildTask(securityDeclarationService.sendNDLRXml(sdVo), ndlrPath).perform();
|
|
|
|
|
|
}
|
|
|
manifestService.save(manifestEntity);
|
|
|
}else {
|
...
|
...
|
|