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 1b89bc40
authored
Jun 14, 2023
by
wangli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
1 parent
56a5f37b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
12 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 @
1b89bc4
...
...
@@ -89,6 +89,7 @@ public class DispatchServiceImpl implements DispatchService {
@Transactional
@Override
public
Result
<?>
getDispatchEngineerOrderList
(
String
levelType
,
List
<
String
>
levelIds
,
String
date
)
{
// 派工台技术员预约单列表
// 获取技能耗时
HashMap
<
String
,
Integer
>
skillTakeTime
=
this
.
querySkillTakeTime
();
...
...
@@ -107,8 +108,8 @@ public class DispatchServiceImpl implements DispatchService {
// 获取订单ID
Set
<
String
>
orderIds
=
new
HashSet
<>();
for
(
String
k:
engineerOrders
.
keySet
())
{
for
(
OrderAppointment
o
:
engineerOrders
.
get
(
k
))
{
for
(
String
k
:
engineerOrders
.
keySet
())
{
for
(
OrderAppointment
o
:
engineerOrders
.
get
(
k
))
{
orderIds
.
add
(
o
.
getOrderId
());
}
}
...
...
@@ -119,15 +120,9 @@ public class DispatchServiceImpl implements DispatchService {
List
<
DispatchEngineerOrderListResp
.
EngineerInfo
>
egs
=
new
ArrayList
<>();
for
(
EngineerInfo
e
:
engineers
)
{
DispatchEngineerOrderListResp
.
EngineerInfo
eg
=
new
DispatchEngineerOrderListResp
.
EngineerInfo
();
eg
.
setEngineerCode
(
e
.
getEngineerCode
());
eg
.
setEngineerName
(
e
.
getName
());
eg
.
setCapacity
(
""
);
eg
.
setCapacityStatus
(
""
);
eg
.
setCertificate
(
e
.
getCredentials
());
// 获取技术员指派单的订单列表
List
<
DispatchEngineerOrderListResp
.
OrderInfo
>
items
=
new
ArrayList
<>();
for
(
OrderAppointment
r
:
engineerOrders
.
get
(
e
.
getEngineerCode
()))
{
for
(
OrderAppointment
r
:
engineerOrders
.
get
(
e
.
getEngineerCode
()))
{
DispatchEngineerOrderListResp
.
OrderInfo
item
=
new
DispatchEngineerOrderListResp
.
OrderInfo
();
// 获取订单信息
OrderRequest
o
=
orders
.
get
(
r
.
getEngineerCode
()).
get
(
0
);
...
...
@@ -153,9 +148,20 @@ public class DispatchServiceImpl implements DispatchService {
items
.
add
(
item
);
}
}
return
null
;
DispatchEngineerOrderListResp
.
EngineerInfo
eg
=
new
DispatchEngineerOrderListResp
.
EngineerInfo
();
eg
.
setOrders
(
items
);
eg
.
setEngineerCode
(
e
.
getEngineerCode
());
eg
.
setEngineerName
(
e
.
getName
());
eg
.
setCapacity
(
""
);
eg
.
setCapacityStatus
(
""
);
eg
.
setCertificate
(
e
.
getCredentials
());
egs
.
add
(
eg
);
}
DispatchEngineerOrderListResp
res
=
new
DispatchEngineerOrderListResp
();
res
.
setEngineers
(
egs
);
return
Result
.
success
(
res
);
}
@Override
...
...
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