tao.mo

接口调用不失败处理

mt
2023年7月20日15:18:14
...@@ -646,6 +646,13 @@ public class ChmConsignmentService { ...@@ -646,6 +646,13 @@ public class ChmConsignmentService {
646 result.setMsg("主单"+ fedexMawb.getBillNo()+" 更新失败"); 646 result.setMsg("主单"+ fedexMawb.getBillNo()+" 更新失败");
647 return result; 647 return result;
648 } 648 }
649 + }else{
650 + //条件1、状态为 C类待申报
651 + //条件2、本次推送时间 > 上次推送的时间 条件不满足
652 + log.info("主单"+ fedexMawb.getBillNo()+" 更新失败");
653 + result.setCode(ErrorCodeEnum.ERROR_30003.getCode());
654 + result.setMsg("主单"+ fedexMawb.getBillNo()+" 条件1、状态为 C类待申报,条件2、本次推送时间 > 上次推送的时间,条件不满足更新失败");
655 + return result;
649 } 656 }
650 }catch (Exception e){ 657 }catch (Exception e){
651 log.error(""+e.getMessage()); 658 log.error(""+e.getMessage());
......