|
@@ -42,10 +42,14 @@ public class FFMResolveImpl implements FFMResolve { |
|
@@ -42,10 +42,14 @@ public class FFMResolveImpl implements FFMResolve { |
42
|
for (FFMInfo ffm : ffmInfoList) {
|
42
|
for (FFMInfo ffm : ffmInfoList) {
|
43
|
//todo:国际转运判定,需要维护机场代码静态表
|
43
|
//todo:国际转运判定,需要维护机场代码静态表
|
44
|
List<TBBaseAirportInfo> airportInfoList= airportInfoDao.checkInternal(ffm.getOriginatingstationBill(),ffm.getDestinationstationBill());
|
44
|
List<TBBaseAirportInfo> airportInfoList= airportInfoDao.checkInternal(ffm.getOriginatingstationBill(),ffm.getDestinationstationBill());
|
45
|
- if (!airportInfoList.isEmpty() && airportInfoList.get(0).getInternal().equals(airportInfoList.get(1).getInternal()) && "1".equals(airportInfoList.get(1).getInternal())){
|
45
|
+ if (!airportInfoList.isEmpty() && airportInfoList.size()>1){
|
|
|
46
|
+ if (airportInfoList.get(0).getInternal().equals(airportInfoList.get(1).getInternal()) && "1".equals(airportInfoList.get(1).getInternal())){
|
46
|
ffm.setCustomsstatus("002");
|
47
|
ffm.setCustomsstatus("002");
|
47
|
log.info("运单{}为国际转运货物",ffm.getWaybillnomaster());
|
48
|
log.info("运单{}为国际转运货物",ffm.getWaybillnomaster());
|
48
|
}
|
49
|
}
|
|
|
50
|
+ }else {
|
|
|
51
|
+ log.error("{}{}机场代码未备案",ffm.getOriginatingstationBill(),ffm.getDestinationstationBill());
|
|
|
52
|
+ }
|
49
|
int result = ffmInfoDao.insertSelective(ffm);
|
53
|
int result = ffmInfoDao.insertSelective(ffm);
|
50
|
if (result <=0){
|
54
|
if (result <=0){
|
51
|
log.error("{}入库失败",ffm.getWaybillnomaster());
|
55
|
log.error("{}入库失败",ffm.getWaybillnomaster());
|