Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
Overview
Overview
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
hooloo
ms
soss
Commits
1613180b
Commit
1613180b
authored
Oct 11, 2022
by
caiyt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
把自动变7去掉,增加从机器系统过来7的状态处理
parent
625acc73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
soss-system/src/main/java/com/soss/system/schedule/OrderSchedule.java
+6
-8
No files found.
soss-system/src/main/java/com/soss/system/schedule/OrderSchedule.java
View file @
1613180b
...
...
@@ -5,9 +5,7 @@ import com.soss.system.domain.Order;
import
com.soss.system.domain.OrderOperationLog
;
import
com.soss.system.mapper.OrderMapper
;
import
com.soss.system.mapper.OrderOperationLogMapper
;
import
com.soss.system.service.impl.OrderServiceImpl
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Component
;
...
...
@@ -18,24 +16,24 @@ import java.util.List;
public
class
OrderSchedule
{
@Autowired
private
OrderMapper
orderMapper
;
@Value
(
"${timeout}"
)
private
Integer
timeout
;
//
@Value("${timeout}")
//
private Integer timeout;
@Autowired
private
OrderOperationLogMapper
operationLogMapper
;
@Autowired
private
OrderServiceImpl
orderService
;
//
@Autowired
//
private OrderServiceImpl orderService;
@Scheduled
(
fixedDelay
=
60
*
1000
)
private
void
process
()
{
//orderMapper.updateTimeOut(OrderStatusConstant.productionCompleted,timeout);
List
<
Order
>
orders1
=
orderMapper
.
selectOrderByTime
(
OrderStatusConstant
.
productionCompleted
,
timeout
);
/*
List<Order> orders1 = orderMapper.selectOrderByTime(OrderStatusConstant.productionCompleted, timeout);
if(orders1!=null &&orders1.size()>0){
for (Order order : orders1) {
order.setState(OrderStatusConstant.timeout);
order.setUpdatedAt(new Date());
orderService.updateOrder(order);
}
}
}
*/
//orderMapper.updateCancel(OrderStatusConstant.Unpaid,15);
List
<
Order
>
orders
=
orderMapper
.
selectOrderByTime
(
OrderStatusConstant
.
Unpaid
,
15
*
60
);
if
(
orders
!=
null
&&
orders
.
size
()>
0
){
...
...
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