...
|
...
|
@@ -55,14 +55,17 @@ public class FFMInfoHandle { |
|
|
*/
|
|
|
public boolean dealFFMInfoWithPallet(){
|
|
|
boolean result =false;
|
|
|
String flightDate = "";
|
|
|
String flghtNo = "";
|
|
|
String waybill = "";
|
|
|
try {
|
|
|
//1.取航班非空的板箱的运单列表数据,并且报文接收标识last存在。
|
|
|
List<FFMInfo> ffmInfoList = ffmInfoHandle.ffmInfoService.getDistinctFlightWithPallet(false);
|
|
|
if (ffmInfoList!=null && !ffmInfoList.isEmpty()){
|
|
|
for (FFMInfo item_f:ffmInfoList) {
|
|
|
|
|
|
String flightDate = DateUtil.dateToString(item_f.getFlightdate());
|
|
|
String flghtNo = item_f.getFlightno();
|
|
|
flightDate = DateUtil.dateToString(item_f.getFlightdate());
|
|
|
flghtNo = item_f.getFlightno();
|
|
|
StringBuilder sb = new StringBuilder();
|
|
|
log.warn(sb.append("开始处理航班带板箱数据:").append(flghtNo).append("/").append(flightDate).append("\n").toString());
|
|
|
|
...
|
...
|
@@ -78,7 +81,8 @@ public class FFMInfoHandle { |
|
|
if (ffmlist_reportorder_1 !=null && !ffmlist_reportorder_1.isEmpty()){
|
|
|
for (FFMInfo item:ffmlist_reportorder_1) {
|
|
|
|
|
|
log.info(new StringBuilder("--------------开始入库").append(flghtNo).append("/").append(flightDate).append(":").append(item.getWaybillnomaster()).append("------------").toString());
|
|
|
waybill = item.getWaybillnomaster();
|
|
|
log.info(new StringBuilder("--------------开始入库").append(flghtNo).append("/").append(flightDate).append(":").append(waybill).append("------------").toString());
|
|
|
|
|
|
|
|
|
result = updateFFM2Manifest(item);
|
...
|
...
|
@@ -126,6 +130,8 @@ public class FFMInfoHandle { |
|
|
// dealFFMInfoWithNullPallet();
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
String errstr = new StringBuilder("航班:").append(flghtNo).append("/").append(flightDate).append("/").append(waybill).append("->解析入库失败").toString();
|
|
|
log.error(errstr,e);
|
|
|
}
|
|
|
return true;
|
|
|
}
|
...
|
...
|
|