Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lingxi-lxy-yanshou
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
后端-黄柯铭
lingxi-lxy-yanshou
Commits
678a9818
Commit
678a9818
authored
Sep 14, 2021
by
czh030
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改自动收货
parent
61384fce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
BuyerOrderServiceImpl.java
...y/lingxi/order/serviceimpl/web/BuyerOrderServiceImpl.java
+8
-8
No files found.
order-service/src/main/java/com/ssy/lingxi/order/serviceimpl/web/BuyerOrderServiceImpl.java
View file @
678a9818
...
...
@@ -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 : 订单内、外流转记录
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment