Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit bc9c42e9
authored
Jun 15, 2023
by
wangli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
1 parent
d9220f84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/DispatchServiceImpl.java
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/DispatchServiceImpl.java
View file @
bc9c42e
...
@@ -9,7 +9,6 @@ import com.alibaba.cloud.integration.order.entity.*;
...
@@ -9,7 +9,6 @@ import com.alibaba.cloud.integration.order.entity.*;
import
com.alibaba.cloud.integration.order.service.DispatchService
;
import
com.alibaba.cloud.integration.order.service.DispatchService
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
org.aspectj.weaver.ast.Or
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
...
@@ -29,7 +28,6 @@ interface GroupTag {
...
@@ -29,7 +28,6 @@ interface GroupTag {
@Service
@Service
public
class
DispatchServiceImpl
implements
DispatchService
{
public
class
DispatchServiceImpl
implements
DispatchService
{
@Autowired
@Autowired
private
OrderRequestMPDao
orderRequestMPDao
;
private
OrderRequestMPDao
orderRequestMPDao
;
...
@@ -221,6 +219,9 @@ public class DispatchServiceImpl implements DispatchService {
...
@@ -221,6 +219,9 @@ public class DispatchServiceImpl implements DispatchService {
// TODO,临时处理方案,后续调用派单引擎处理
// TODO,临时处理方案,后续调用派单引擎处理
OrderRequestScheduler
scheduler
=
new
OrderRequestScheduler
();
OrderRequestScheduler
scheduler
=
new
OrderRequestScheduler
();
List
<
LineSegment
>
results
=
scheduler
.
scheduler
(
orders
,
orderAppointments
);
List
<
LineSegment
>
results
=
scheduler
.
scheduler
(
orders
,
orderAppointments
);
System
.
out
.
println
(
results
);
for
(
LineSegment
r
:
results
)
{
for
(
LineSegment
r
:
results
)
{
String
orderId
=
r
.
id
;
String
orderId
=
r
.
id
;
...
@@ -249,8 +250,7 @@ public class DispatchServiceImpl implements DispatchService {
...
@@ -249,8 +250,7 @@ public class DispatchServiceImpl implements DispatchService {
wrapper
.
eq
(
OrderRequest:
:
getOrderId
,
orderId
);
wrapper
.
eq
(
OrderRequest:
:
getOrderId
,
orderId
);
orderRequestMPDao
.
update
(
null
,
wrapper
);
orderRequestMPDao
.
update
(
null
,
wrapper
);
}
}
return
Result
.
success
(
null
);
return
null
;
}
}
private
List
<
OrderRequest
>
queryOrderRequests
(
String
levelType
,
List
<
String
>
levelIds
,
String
date
)
{
private
List
<
OrderRequest
>
queryOrderRequests
(
String
levelType
,
List
<
String
>
levelIds
,
String
date
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment