菠萝派接口-发货接口修改
正在显示
1 个修改的文件
包含
3 行增加
和
4 行删除
... | @@ -43,10 +43,9 @@ public class PineappleSendBizServiceImpl extends AbstractBizService<PineappleSen | ... | @@ -43,10 +43,9 @@ public class PineappleSendBizServiceImpl extends AbstractBizService<PineappleSen |
43 | throw new BizException(String.format("订单发货,获取订单数据业务异常:[%s]",callRequest.getBizModel().getPlatOrderNo())); | 43 | throw new BizException(String.format("订单发货,获取订单数据业务异常:[%s]",callRequest.getBizModel().getPlatOrderNo())); |
44 | } | 44 | } |
45 | //只有订单状态为12345可以允许修改快递单号,其中状态为123可以修改地址,发货时间,订单状态,其他订单状态直接报业务异常 | 45 | //只有订单状态为12345可以允许修改快递单号,其中状态为123可以修改地址,发货时间,订单状态,其他订单状态直接报业务异常 |
46 | if(orders.getOrderState().intValue() != EJavaShopOrderStateEnum.RefundFail.getCode()){ | 46 | if(orders.getOrderState().intValue() != EJavaShopOrderStateEnum.RefundFail.getCode() && orders.getOrderState().intValue() != EJavaShopOrderStateEnum.WaitPay.getCode()){ |
47 | 47 | ||
48 | if(orders.getOrderState().intValue() == EJavaShopOrderStateEnum.WaitPay.getCode() | 48 | if(orders.getOrderState().intValue() == EJavaShopOrderStateEnum.WaitConfirmed.getCode() |
49 | || orders.getOrderState().intValue() == EJavaShopOrderStateEnum.WaitConfirmed.getCode() | ||
50 | || orders.getOrderState().intValue() == EJavaShopOrderStateEnum.WaitShip.getCode()){ | 49 | || orders.getOrderState().intValue() == EJavaShopOrderStateEnum.WaitShip.getCode()){ |
51 | 50 | ||
52 | //订单状态 | 51 | //订单状态 |
... | @@ -64,10 +63,10 @@ public class PineappleSendBizServiceImpl extends AbstractBizService<PineappleSen | ... | @@ -64,10 +63,10 @@ public class PineappleSendBizServiceImpl extends AbstractBizService<PineappleSen |
64 | 63 | ||
65 | } | 64 | } |
66 | 65 | ||
66 | if(!StringUtil.isNull(callRequest.getBizModel().getLogisticNo())){ | ||
67 | //判断该快递订单号是否存在,已存在就不允许把该快递订单号添加进去 | 67 | //判断该快递订单号是否存在,已存在就不允许把该快递订单号添加进去 |
68 | int num = pineappleDao.checkLogisticsNumber(params); | 68 | int num = pineappleDao.checkLogisticsNumber(params); |
69 | if(num == 0){ | 69 | if(num == 0){ |
70 | if(!StringUtil.isNull(callRequest.getBizModel().getLogisticNo())){ | ||
71 | if(StringUtil.isNull(orders.getLogisticsNumber())){ | 70 | if(StringUtil.isNull(orders.getLogisticsNumber())){ |
72 | params.put("logisticsNumber",callRequest.getBizModel().getLogisticNo()); | 71 | params.put("logisticsNumber",callRequest.getBizModel().getLogisticNo()); |
73 | }else{ | 72 | }else{ | ... | ... |
-
请 注册 或 登录 后发表评论