Commit 678a9818 authored by czh030's avatar czh030

修改自动收货

parent 61384fce
......@@ -1422,6 +1422,10 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService {
throw new BusinessException(ResponseCode.SERVICE_SCHEDULER_ERROR);
}
// 记录采购、供应的上一次内部状态,用于发送报表统计数据
int lastBuyerInnerStatus = order.getBuyerInnerStatus();
int lastVendorInnerStatus = order.getVendorInnerStatus();
//Step 2 : 执行工作流任务(修改订单状态、记录内外流转记录)
Wrapper<ProcessTaskBO> taskResult = baseOrderTaskService.execOrderProcess(order, checkResult.getData().getTaskJumpParamter());
if(taskResult.getCode() != ResponseCode.SUCCESS.getCode()) {
......@@ -1429,14 +1433,10 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService {
return Wrapper.fail(taskResult.getCode(), taskResult.getMessage());
}
// 记录采购、供应的上一次内部状态,用于发送报表统计数据
Integer lastBuyerInnerStatus = order.getBuyerInnerStatus();
Integer lastVendorInnerStatus = order.getVendorInnerStatus();
order.getTask().setTaskId(taskResult.getData().getTaskId());
order.setVendorInnerStatus(taskResult.getData().getVendorInnerStatus());
order.setBuyerInnerStatus(taskResult.getData().getBuyerInnerStatus());
order.setOuterStatus(taskResult.getData().getOuterStatus());
// order.getTask().setTaskId(taskResult.getData().getTaskId());
// order.setVendorInnerStatus(taskResult.getData().getVendorInnerStatus());
// order.setBuyerInnerStatus(taskResult.getData().getBuyerInnerStatus());
// order.setOuterStatus(taskResult.getData().getOuterStatus());
orderRepository.saveAndFlush(order);
//Step 3 : 订单内、外流转记录
......
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