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 16fedfb1
authored
Dec 04, 2023
by
huangjinxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:排班结果处理订单查询,工单列表相关期望时间返回
1 parent
7a80999c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
1 deletions
project-order/src/main/java/com/dituhui/pea/order/dto/DispatchEngineerOrderListResp.java
project-order/src/main/java/com/dituhui/pea/order/dto/DispatchOrderListResp.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/DispatchServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/ScheduleServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/dto/DispatchEngineerOrderListResp.java
View file @
16fedfb
...
...
@@ -53,6 +53,9 @@ public class DispatchEngineerOrderListResp {
private
String
groupTag
;
private
Integer
groupWeight
;
private
String
expectTimeBegin
;
private
String
expectTimeEnd
;
/**
* 一家多单id,有则多条订单关联,没有则不是一家多单
*/
...
...
project-order/src/main/java/com/dituhui/pea/order/dto/DispatchOrderListResp.java
View file @
16fedfb
...
...
@@ -41,6 +41,9 @@ public class DispatchOrderListResp {
private
String
groupTag
;
private
Integer
groupWeight
;
private
String
expectTimeBegin
;
private
String
expectTimeEnd
;
/**
* 一家多单id,有则多条订单关联,没有则不是一家多单
*/
...
...
project-order/src/main/java/com/dituhui/pea/order/service/impl/DispatchServiceImpl.java
View file @
16fedfb
...
...
@@ -130,6 +130,8 @@ public class DispatchServiceImpl implements DispatchService {
item
.
setOrderStatus
(
o
.
getOrderStatus
());
item
.
setServiceStatus
(
o
.
getServiceStatus
());
item
.
setCreateTime
(
TimeUtils
.
IsoLocalDateTime2String
(
o
.
getCreateTime
()));
item
.
setExpectTimeBegin
(
TimeUtils
.
IsoLocalDateTime2String
(
o
.
getExpectTimeBegin
()));
item
.
setExpectTimeEnd
(
TimeUtils
.
IsoLocalDateTime2String
(
o
.
getExpectTimeEnd
()));
String
[]
tags
=
gt
.
getGroupTag
(
o
).
split
(
"#"
);
item
.
setGroupTag
(
tags
[
0
]);
// 设置tag名称
...
...
@@ -303,6 +305,8 @@ public class DispatchServiceImpl implements DispatchService {
item
.
setServiceStatus
(
OrderUtil
.
handleServiceStatus
(
o
));
item
.
setOrderStatusDesc
(
OrderStatusEnum
.
valueOf
(
o
.
getOrderStatus
()).
getDescription
());
item
.
setCreateTime
(
TimeUtils
.
IsoLocalDateTime2String
(
o
.
getCreateTime
()));
item
.
setExpectTimeBegin
(
TimeUtils
.
IsoLocalDateTime2String
(
o
.
getExpectTimeBegin
()));
item
.
setExpectTimeEnd
(
TimeUtils
.
IsoLocalDateTime2String
(
o
.
getExpectTimeEnd
()));
item
.
setMultipleOrders
(
o
.
getMultipleOrders
());
item
.
setIsMultiple
(
o
.
getIsMultiple
());
...
...
@@ -475,6 +479,8 @@ public class DispatchServiceImpl implements DispatchService {
item
.
setOrderStatus
(
o
.
getOrderStatus
());
item
.
setServiceStatus
(
o
.
getServiceStatus
());
item
.
setCreateTime
(
TimeUtils
.
IsoLocalDateTime2String
(
o
.
getCreateTime
()));
item
.
setExpectTimeBegin
(
TimeUtils
.
IsoLocalDateTime2String
(
o
.
getExpectTimeBegin
()));
item
.
setExpectTimeEnd
(
TimeUtils
.
IsoLocalDateTime2String
(
o
.
getExpectTimeEnd
()));
item
.
setMultipleOrders
(
o
.
getMultipleOrders
());
item
.
setIsMultiple
(
o
.
getIsMultiple
());
...
...
project-order/src/main/java/com/dituhui/pea/order/service/impl/ScheduleServiceImpl.java
View file @
16fedfb
...
...
@@ -117,7 +117,7 @@ public class ScheduleServiceImpl implements ScheduleService {
team
.
setLevel
(
"team"
);
// 获取改team订单列表
List
<
OrderInfoEntity
>
orders
=
orderInfoDao
.
findByDtAndOrgTeamIdAndAppointmentStatusIn
(
date
,
t
.
getTeamId
(),
List
.
of
(
OrderFlowEnum
.
INIT
.
name
(),
OrderFlowEnum
.
PRE
.
name
(),
OrderFlowEnum
.
CONFIRM
.
name
()));
List
<
OrderInfoEntity
>
orders
=
orderInfoDao
.
findByDtAndOrgTeamIdAndAppointmentStatusIn
(
date
,
t
.
getTeamId
(),
List
.
of
(
OrderFlowEnum
.
PRE
.
name
(),
OrderFlowEnum
.
CONFIRM
.
name
()));
team
.
setOrder
(
this
.
getTeamOrderSum
(
orders
,
skillMapping
));
// 技术员指派单列表
...
...
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