update:修改订单提交顺序
This commit is contained in:
parent
e8c263982b
commit
193cc8e9bf
|
@ -105,7 +105,7 @@ public class OrdersServiceImpl extends ServiceImpl<OrdersMapper, OrdersDO> imple
|
|||
// 并且根据上游下单结果处理ordersDO
|
||||
// 最后把 处理后的ordersDO 更新存入数据库
|
||||
ordersDO = handleOrderCreate(ordersDO);
|
||||
ordersService.updateOrderById(ordersDO);
|
||||
updateOrderById(ordersDO);
|
||||
|
||||
return orderId;
|
||||
}
|
||||
|
@ -321,7 +321,7 @@ public class OrdersServiceImpl extends ServiceImpl<OrdersMapper, OrdersDO> imple
|
|||
log.error("提交审核的订单数据:{}", JSON.toJSONString(updateObj));
|
||||
}
|
||||
log.error("更新订单前的数据:{}", JSON.toJSONString(updateObj));
|
||||
ordersService.updateOrderById(updateObj);
|
||||
updateOrderById(updateObj);
|
||||
// 异步处理 审核成功是否自动进单
|
||||
Integer autoType = oldOrderDo.getAutoType();
|
||||
// 联合条件: 自动生产 && 审核通过 && 提交初审
|
||||
|
@ -456,7 +456,7 @@ public class OrdersServiceImpl extends ServiceImpl<OrdersMapper, OrdersDO> imple
|
|||
Integer autoType = haoKaProduct.getAutoType();
|
||||
updateObj.setAutoType(autoType);
|
||||
|
||||
ordersService.updateOrderById(updateObj);
|
||||
updateOrderById(updateObj);
|
||||
Long status = updateObj.getStatus();
|
||||
// 进入审核流程
|
||||
log.error("【审核订单开始】,订单状态:{}",status);
|
||||
|
@ -500,7 +500,7 @@ public class OrdersServiceImpl extends ServiceImpl<OrdersMapper, OrdersDO> imple
|
|||
orderOperateLogService.createOrderOperateLog(logSaveReqVO);
|
||||
}
|
||||
log.error("【审核订单完成】,订单数据:{}",JSON.toJSONString(updateObj));
|
||||
ordersService.updateOrderById(updateObj);
|
||||
updateOrderById(updateObj);
|
||||
}
|
||||
// 如果是抖音订单 则需要调用抖音接口 返回审核结果
|
||||
String source = ordersOld.getSource();
|
||||
|
@ -565,7 +565,7 @@ public class OrdersServiceImpl extends ServiceImpl<OrdersMapper, OrdersDO> imple
|
|||
ordersDO.setStatus(-460L);
|
||||
ordersDO.setUpstreamOrderStatus(-460);
|
||||
}
|
||||
ordersService.updateOrderById(ordersDO);
|
||||
updateOrderById(ordersDO);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -632,7 +632,7 @@ public class OrdersServiceImpl extends ServiceImpl<OrdersMapper, OrdersDO> imple
|
|||
}
|
||||
orderOperateLogService.createOrderOperateLog(logSaveReqVO);
|
||||
// 更新订单
|
||||
ordersService.updateOrderById(ordersDO);
|
||||
updateOrderById(ordersDO);
|
||||
return ordersDO;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue