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 90d90b64
authored
Jun 10, 2023
by
wangli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
1 parent
b9e35154
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 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 @
90d90b6
...
...
@@ -88,8 +88,17 @@ public class DispatchServiceImpl implements DispatchService {
return
Result
.
success
(
res
);
}
@Transactional
@Override
public
Result
<?>
getDispatchEngineerOrderList
(
String
levelType
,
List
<
String
>
levelIds
,
String
date
)
{
// 获取groupIds
List
<
String
>
groupIds
=
this
.
queryOrgGroupIds
(
levelType
,
levelIds
);
// 获取engineerCodes
List
<
String
>
engineerCodes
=
this
.
queryEngineerCodes
(
groupIds
);
List
<
String
>
orderIds
=
this
.
queryOrderAppointmentOrderIds
(
engineerCodes
,
date
);
return
null
;
}
...
...
@@ -114,15 +123,16 @@ public class DispatchServiceImpl implements DispatchService {
return
orderRequestMPDao
.
selectList
(
lqw
);
}
private
List
<
OrderAppointment
>
queryOrderAppointment
s
(
List
<
String
>
engineerCodes
,
String
date
)
{
private
List
<
String
>
queryOrderAppointmentOrderId
s
(
List
<
String
>
engineerCodes
,
String
date
)
{
// 获取工程师服务单列表
List
<
String
>
orderIds
=
new
ArrayList
<>();
LambdaQueryWrapper
<
OrderAppointment
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
in
(
OrderAppointment:
:
getEngineerCode
,
engineerCodes
);
lqw
.
eq
(
OrderAppointment:
:
getStatus
,
"预指派"
);
lqw
.
ge
(
OrderAppointment:
:
getExpectTime
,
this
.
DateString2Timestamp
(
date
,
"00:00:00"
));
lqw
.
le
(
OrderAppointment:
:
getExpectTime
,
this
.
DateString2Timestamp
(
date
,
"23:59:59"
));
orderAppointmentMPDao
.
selectList
(
lqw
);
return
null
;
lqw
.
select
(
OrderAppointment:
:
getOrderId
);
return
orderAppointmentMPDao
.
selectList
(
lqw
).
stream
().
map
(
OrderAppointment:
:
getOrderId
).
collect
(
Collectors
.
toList
())
;
}
private
List
<
String
>
queryEngineerCodes
(
List
<
String
>
groupIds
)
{
...
...
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