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