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
a6616a1e
Commit
a6616a1e
authored
Sep 14, 2021
by
czh030
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改定时任务-自动收货
parent
678a9818
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
BuyerOrderServiceImpl.java
...y/lingxi/order/serviceimpl/web/BuyerOrderServiceImpl.java
+2
-3
No files found.
order-service/src/main/java/com/ssy/lingxi/order/serviceimpl/web/BuyerOrderServiceImpl.java
View file @
a6616a1e
...
...
@@ -1415,7 +1415,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService {
LocalDateTime
createTime
=
LocalDateTime
.
now
().
plus
(
0
-
parameterValue
.
intValue
(),
ChronoUnit
.
DAYS
);
List
<
OrderDeliveryDO
>
list
=
orderDeliveryRepository
.
findAllByCreateTimeBeforeAndBuyerInnerStatus
(
createTime
,
BuyerInnerStatusEnum
.
BUYER_TO_RECEIVE
.
getCode
());
for
(
OrderDeliveryDO
orderDeliveryDO
:
list
)
{
OrderDO
order
=
order
DeliveryDO
.
getOrder
(
);
OrderDO
order
=
order
Repository
.
findById
(
orderDeliveryDO
.
getOrder
().
getId
()).
orElse
(
null
);
//Step 1 : 校验参数,修改发货记录统计数据
Wrapper
<
OrderReceiveBO
>
checkResult
=
baseOrderDeliveryService
.
checkBuyerOrderReceive
(
null
,
order
,
orderDeliveryDO
.
getBatchNo
());
if
(
checkResult
.
getCode
()
!=
ResponseCode
.
SUCCESS
.
getCode
())
{
...
...
@@ -1429,8 +1429,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService {
//Step 2 : 执行工作流任务(修改订单状态、记录内外流转记录)
Wrapper
<
ProcessTaskBO
>
taskResult
=
baseOrderTaskService
.
execOrderProcess
(
order
,
checkResult
.
getData
().
getTaskJumpParamter
());
if
(
taskResult
.
getCode
()
!=
ResponseCode
.
SUCCESS
.
getCode
())
{
TransactionAspectSupport
.
currentTransactionStatus
().
setRollbackOnly
();
return
Wrapper
.
fail
(
taskResult
.
getCode
(),
taskResult
.
getMessage
());
throw
new
BusinessException
(
ResponseCode
.
SERVICE_SCHEDULER_ERROR
);
}
// order.getTask().setTaskId(taskResult.getData().getTaskId());
...
...
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