作者 朱兆平

回执解析优化

... ... @@ -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();
... ...
... ... @@ -31,15 +31,6 @@ public class ARRIVEDMASTERServiceImp extends NmmsBaseService implements ARRIVEDM
ARRIVEDSECONDARYMapper arrivedsecondaryMapper;
@Override
// 货物接收运抵主分单
public int insertRecept(CustomReception customReception) {
return super.insertRecept(customReception);
}
/**
* 入库主单回执信息
* @return 成功返回1,失败返回0。
... ...
... ... @@ -43,13 +43,6 @@ public class CoustomAnalysisServiceImp extends NmmsBaseService implements Cousto
}
}
@Override
public int insertRecept(CustomReception customReception){
return super.insertRecept(customReception);
}
@Override
public int second() {
// 设置分单回执
... ...
... ... @@ -25,12 +25,6 @@ public class DEPARTURESLOADINGServiceImp extends NmmsBaseService implements DEPA
@Autowired
DEPARTURESLOADINGMapper departuresloadingMapper;
@Override
public int insertRecept(CustomReception customReception) {
return super.insertRecept(customReception);
}
/**
* 入库分单回执信息
* @return 成功返回1,失败返回0。
... ...
... ... @@ -28,12 +28,6 @@ public class INPORTALLOCATEServiceImp extends NmmsBaseService implements INPORT
@Autowired
INPORTALLOCATEMapper inportallocateMapper;
@Override
public int insertRecept(CustomReception customReception) {
return super.insertRecept(customReception);
}
@Override
public int master() {
INPORTALLOCATE inportallocate = new INPORTALLOCATE();
... ...
... ... @@ -29,13 +29,6 @@ public class PREPAREMASTERServiceImp extends NmmsBaseService implements PREPAREM
@Autowired
PREPARESECONDARYMapper preparesecondaryMapper;
@Override
// 货物接收运抵主分单
public int insertRecept(CustomReception customReception) {
return super.insertRecept(customReception);
}
/**
* 入库分单回执信息
* @return 成功返回1,失败返回0。
... ...
... ... @@ -32,12 +32,6 @@ public class TALLYMASTERServiceImp extends NmmsBaseService implements TALLYMASTE
@Autowired
TALLYSECONDARYMapper tallysecondaryMapper;
@Override
// 进出港理货
public int insertRecept(CustomReception customReception) {
return super.insertRecept(customReception);
}
/**
* 入库主单回执信息
* @return 成功返回1,失败返回0。
... ...