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 31adfdd8
authored
Jun 15, 2023
by
王力
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature_mvp616_wangl' into 'develop'
修改 See merge request !91
2 parents
babb769c
bc9c42e9
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 @
31adfdd
...
...
@@ -9,7 +9,6 @@ import com.alibaba.cloud.integration.order.entity.*;
import
com.alibaba.cloud.integration.order.service.DispatchService
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
org.aspectj.weaver.ast.Or
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
...
...
@@ -29,7 +28,6 @@ interface GroupTag {
@Service
public
class
DispatchServiceImpl
implements
DispatchService
{
@Autowired
private
OrderRequestMPDao
orderRequestMPDao
;
...
...
@@ -221,6 +219,9 @@ public class DispatchServiceImpl implements DispatchService {
// TODO,临时处理方案,后续调用派单引擎处理
OrderRequestScheduler
scheduler
=
new
OrderRequestScheduler
();
List
<
LineSegment
>
results
=
scheduler
.
scheduler
(
orders
,
orderAppointments
);
System
.
out
.
println
(
results
);
for
(
LineSegment
r
:
results
)
{
String
orderId
=
r
.
id
;
...
...
@@ -249,8 +250,7 @@ public class DispatchServiceImpl implements DispatchService {
wrapper
.
eq
(
OrderRequest:
:
getOrderId
,
orderId
);
orderRequestMPDao
.
update
(
null
,
wrapper
);
}
return
null
;
return
Result
.
success
(
null
);
}
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