...
|
...
|
@@ -60,6 +60,8 @@ public class CgoNmsController { |
|
|
ResultExitData resultExitData = new ResultExitData();
|
|
|
resultExitData.setFlightDate(flightDate);
|
|
|
resultExitData.setFlightNo(flightNo);
|
|
|
System.out.println("开始时间:" + new Date());
|
|
|
System.out.println("出港数据,开始获取");
|
|
|
/**
|
|
|
* 1.先获取出 新舱单——理货信息 中的相应数据
|
|
|
*
|
...
|
...
|
@@ -67,8 +69,8 @@ public class CgoNmsController { |
|
|
* 航段(在数据库里面为null,所以只能 起始站 > 目的站 )
|
|
|
* 理货件数; 理货重量
|
|
|
*/
|
|
|
|
|
|
List<ResultExitData> resultList = resultExitDataService.getResultExitDataInfo(resultExitData);
|
|
|
System.out.println("长度为:" + resultList.size());
|
|
|
for (int i = 0, resultSize = resultList.size(); i < resultSize; i++) {
|
|
|
ResultExitData result = resultList.get(i);
|
|
|
//设置航班
|
...
|
...
|
@@ -121,14 +123,54 @@ public class CgoNmsController { |
|
|
//获取目的货物目的站
|
|
|
result.setAimStation(pm.get(0).getDestinationStation());
|
|
|
}
|
|
|
/**
|
|
|
* 获取数据仓库的对应数据
|
|
|
*/
|
|
|
// if (result.getWaybillNoMaster() != null && result.getWaybillNoMaster() != "") {}
|
|
|
ResultExitData dataWareHouseInfo = getDataWareHouseFeign.getInfo(result.getWaybillNoMaster());
|
|
|
//设置体积
|
|
|
result.setVolumeMeasure(dataWareHouseInfo.getVolumeMeasure());
|
|
|
//设置计费重量
|
|
|
result.setTotalGrossWeightMeasure(dataWareHouseInfo.getTotalGrossWeightMeasure());
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 获取运输工具的对应数据
|
|
|
*/
|
|
|
ResultExitData transportInfo = getTransportFeign.getInfo(result.getFlightNo(), result.getFlightDate());
|
|
|
//设置航班公司
|
|
|
result.setAirCompany(transportInfo.getAirCompany());
|
|
|
//设置机型
|
|
|
result.setCfTp(transportInfo.getCfTp());
|
|
|
//设置机号
|
|
|
result.setCfNo(transportInfo.getCfNo());
|
|
|
//设置航班计划日期
|
|
|
result.setFlightPlanDate(transportInfo.getFlightPlanDate());
|
|
|
//设置航班(起飞)时间
|
|
|
result.setFlightTime(transportInfo.getFlightTime());
|
|
|
//设置航班计划时间
|
|
|
result.setFlightPlanTime(transportInfo.getFlightPlanTime());
|
|
|
|
|
|
/**
|
|
|
* 获取代理人的相关数据
|
|
|
*/
|
|
|
// if (result.getWaybillNoMaster() != null && result.getWaybillNoMaster() != "") { }
|
|
|
ResultExitData asmInfo = getCgoAsmFeign.getInfo(result.getWaybillNoMaster());
|
|
|
//设置代理人全称
|
|
|
result.setFullName(asmInfo.getFullName());
|
|
|
//设置货主类型
|
|
|
result.setTheShipperType(asmInfo.getTheShipperType());
|
|
|
//设置品名
|
|
|
result.setSdCargoName(asmInfo.getSdCargoName());
|
|
|
//设置二级类名称
|
|
|
result.setTwoTypeName(asmInfo.getTwoTypeName());
|
|
|
//设置一级类名称
|
|
|
result.setTypeName(asmInfo.getTypeName());
|
|
|
|
|
|
System.out.println("第" + i + "条,获取完毕");
|
|
|
}
|
|
|
System.out.println("代理人服务,开始获取");
|
|
|
List<ResultExitData> asmInfo = getCgoAsmFeign.getInfo(resultList);
|
|
|
System.out.println("运输工具服务,开始获取");
|
|
|
List<ResultExitData> transportInfo = getTransportFeign.getInfo(asmInfo);
|
|
|
System.out.println("数据仓库服务,开始获取");
|
|
|
List<ResultExitData> info = getDataWareHouseFeign.getInfo(transportInfo);
|
|
|
System.out.println("出港基本数据,获取完毕");
|
|
|
return info;
|
|
|
System.out.println("结束时间:" + new Date());
|
|
|
System.out.println("出港信息,获取完毕");
|
|
|
return resultList;
|
|
|
}
|
|
|
} |
...
|
...
|
|