1、调整快递信息推送,不管是否为签收,都记录到数据库

This commit is contained in:
bo.yang 2021-06-02 12:56:12 +08:00
parent 6a6283b1d2
commit 854917a0c9
1 changed files with 2 additions and 2 deletions

View File

@ -162,7 +162,7 @@ public class ExpSubsPushApiServiceImpl implements IExpSubsPushApiService {
} }
//快递单当前状态 0在途1揽收2疑难3签收4退签5派件6退回7转单10待清关11清关中12已清关13清关异常14收件人拒签) //快递单当前状态 0在途1揽收2疑难3签收4退签5派件6退回7转单10待清关11清关中12已清关13清关异常14收件人拒签)
String state = subscribePushResult.getState(); String state = subscribePushResult.getState();
if(state.equals("3")){ //if(state.equals("3")){
//处理签收逻辑 //处理签收逻辑
//将快递流转状态存入数据库 //将快递流转状态存入数据库
ExpSubsPushResp expSubsPushResp=new ExpSubsPushResp(); ExpSubsPushResp expSubsPushResp=new ExpSubsPushResp();
@ -181,7 +181,7 @@ public class ExpSubsPushApiServiceImpl implements IExpSubsPushApiService {
//如果数据库中没有快递单号+快递公司编码则更插入新记录 //如果数据库中没有快递单号+快递公司编码则更插入新记录
expSubsPushRespService.insertExpSubsPushResp(ToExpSubsPushResp(subscribePushParamResp)); expSubsPushRespService.insertExpSubsPushResp(ToExpSubsPushResp(subscribePushParamResp));
} }
} // }
return subscribeResp; return subscribeResp;
} }