正在显示
1 个修改的文件
包含
9 行增加
和
3 行删除
@@ -55,14 +55,17 @@ public class FFMInfoHandle { | @@ -55,14 +55,17 @@ public class FFMInfoHandle { | ||
55 | */ | 55 | */ |
56 | public boolean dealFFMInfoWithPallet(){ | 56 | public boolean dealFFMInfoWithPallet(){ |
57 | boolean result =false; | 57 | boolean result =false; |
58 | + String flightDate = ""; | ||
59 | + String flghtNo = ""; | ||
60 | + String waybill = ""; | ||
58 | try { | 61 | try { |
59 | //1.取航班非空的板箱的运单列表数据,并且报文接收标识last存在。 | 62 | //1.取航班非空的板箱的运单列表数据,并且报文接收标识last存在。 |
60 | List<FFMInfo> ffmInfoList = ffmInfoHandle.ffmInfoService.getDistinctFlightWithPallet(false); | 63 | List<FFMInfo> ffmInfoList = ffmInfoHandle.ffmInfoService.getDistinctFlightWithPallet(false); |
61 | if (ffmInfoList!=null && !ffmInfoList.isEmpty()){ | 64 | if (ffmInfoList!=null && !ffmInfoList.isEmpty()){ |
62 | for (FFMInfo item_f:ffmInfoList) { | 65 | for (FFMInfo item_f:ffmInfoList) { |
63 | 66 | ||
64 | - String flightDate = DateUtil.dateToString(item_f.getFlightdate()); | ||
65 | - String flghtNo = item_f.getFlightno(); | 67 | + flightDate = DateUtil.dateToString(item_f.getFlightdate()); |
68 | + flghtNo = item_f.getFlightno(); | ||
66 | StringBuilder sb = new StringBuilder(); | 69 | StringBuilder sb = new StringBuilder(); |
67 | log.warn(sb.append("开始处理航班带板箱数据:").append(flghtNo).append("/").append(flightDate).append("\n").toString()); | 70 | log.warn(sb.append("开始处理航班带板箱数据:").append(flghtNo).append("/").append(flightDate).append("\n").toString()); |
68 | 71 | ||
@@ -78,7 +81,8 @@ public class FFMInfoHandle { | @@ -78,7 +81,8 @@ public class FFMInfoHandle { | ||
78 | if (ffmlist_reportorder_1 !=null && !ffmlist_reportorder_1.isEmpty()){ | 81 | if (ffmlist_reportorder_1 !=null && !ffmlist_reportorder_1.isEmpty()){ |
79 | for (FFMInfo item:ffmlist_reportorder_1) { | 82 | for (FFMInfo item:ffmlist_reportorder_1) { |
80 | 83 | ||
81 | - log.info(new StringBuilder("--------------开始入库").append(flghtNo).append("/").append(flightDate).append(":").append(item.getWaybillnomaster()).append("------------").toString()); | 84 | + waybill = item.getWaybillnomaster(); |
85 | + log.info(new StringBuilder("--------------开始入库").append(flghtNo).append("/").append(flightDate).append(":").append(waybill).append("------------").toString()); | ||
82 | 86 | ||
83 | 87 | ||
84 | result = updateFFM2Manifest(item); | 88 | result = updateFFM2Manifest(item); |
@@ -126,6 +130,8 @@ public class FFMInfoHandle { | @@ -126,6 +130,8 @@ public class FFMInfoHandle { | ||
126 | // dealFFMInfoWithNullPallet(); | 130 | // dealFFMInfoWithNullPallet(); |
127 | }catch (Exception e){ | 131 | }catch (Exception e){ |
128 | e.printStackTrace(); | 132 | e.printStackTrace(); |
133 | + String errstr = new StringBuilder("航班:").append(flghtNo).append("/").append(flightDate).append("/").append(waybill).append("->解析入库失败").toString(); | ||
134 | + log.error(errstr,e); | ||
129 | } | 135 | } |
130 | return true; | 136 | return true; |
131 | } | 137 | } |
-
请 注册 或 登录 后发表评论