Commit 45d28a08 by 周晓航

修复生产 NPE 第三方订单号传递错误的问题

Signed-off-by: 周晓航 <xiaohang.zhou@freemud.com>
parent 05ddae0c
......@@ -85,6 +85,9 @@ public class OrderManagerAdapter {
public BaseResponse<OrderManagerResponse> orderDelivery(OrderManagerRequest request) {
//查询订单
OrderBeanV1 orderBean = orderBaseService.getByOrderCode(request.getOrderId());
if (Objects.isNull(orderBean)) {
return ResponseUtil.error(ResponseResult.ORDER_NOT_EXIST);
}
/*****兼容爱马哥,送出即完成start******/
if (!OldOrderType.TAKE_OUT.getCode().equals(orderBean.getType())) {
request.setOperateType(OperateType.ORDER_AFFIRM.getOpType());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment