...
|
...
|
@@ -28,48 +28,6 @@ public class ALLOCATEARRIVALServiceImp extends NmmsBaseService implements ALLOCA |
|
|
|
|
|
|
|
|
@Override
|
|
|
public int insertRecept(CustomReception customReception) {
|
|
|
ShareServiceImp shareServiceImp = new ShareServiceImp();
|
|
|
|
|
|
// 发送日志 插入
|
|
|
CoustomAnalysisServiceImp coustomAnalysisServiceImp = new CoustomAnalysisServiceImp();
|
|
|
|
|
|
// 主单号
|
|
|
String awbA = customReception.getWayBillMaster();
|
|
|
//回执内容
|
|
|
String reception = customReception.getResponseText();
|
|
|
String flightDateStr = customReception.getFlightDate();
|
|
|
if (!StringUtils.isEmpty(flightDateStr)) {
|
|
|
Date flightDate = DateUtil.formatByyyyyMMdd(flightDateStr);
|
|
|
|
|
|
|
|
|
if (awbA!=null && awbA.length()>0){
|
|
|
StringBuffer stringBuffer = new StringBuffer(awbA);
|
|
|
stringBuffer.insert(3,"-");
|
|
|
awbA = stringBuffer.toString();
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
// 判断航班号 航班日期 是否为空
|
|
|
if (flightDate != null && customReception.getFlightNo() != null){
|
|
|
//处理主单格式,将海关回执的主单号58019316861,变为580-19316861
|
|
|
if (awbA!=null && awbA.length()>0){
|
|
|
|
|
|
}
|
|
|
}else {
|
|
|
|
|
|
return shareServiceImp.share("MT3202", customReception);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
//未进入主分单解析 返回0 失败
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public int master() {
|
|
|
//设置主单回执、航班号、航班日期
|
|
|
ALLOCATEARRIVAL allocatearrival = new ALLOCATEARRIVAL();
|
...
|
...
|
|