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 65adc43e
authored
Nov 22, 2023
by
huangjinxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:改约处理指派状态
1 parent
0a6efdfd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
project-order/src/main/java/com/dituhui/pea/order/service/impl/OrderInfoServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/OrderInfoServiceImpl.java
View file @
65adc43
...
@@ -336,7 +336,6 @@ public class OrderInfoServiceImpl implements OrderInfoService {
...
@@ -336,7 +336,6 @@ public class OrderInfoServiceImpl implements OrderInfoService {
String
teamId
=
order
.
getOrgTeamId
();
String
teamId
=
order
.
getOrgTeamId
();
log
.
info
(
"[orderReschedule] orderId:{} orderstatus: isToday:{},isBelong:{},isNetwork:{},isAssign:{}"
,
order
.
getOrderId
(),
isToday
,
isBelong
,
isNetwork
,
isAssign
);
// 修改技能时处理工单耗时
// 修改技能时处理工单耗时
if
(
skillUpdate
)
{
if
(
skillUpdate
)
{
isAssign
=
true
;
isAssign
=
true
;
...
@@ -353,7 +352,8 @@ public class OrderInfoServiceImpl implements OrderInfoService {
...
@@ -353,7 +352,8 @@ public class OrderInfoServiceImpl implements OrderInfoService {
}
}
}
}
}
}
log
.
info
(
"[orderReschedule] orderId:{} orderstatus: isToday:{},isBelong:{},isNetwork:{},isAssign:{},skillUpdate:{}"
,
order
.
getOrderId
(),
isToday
,
isBelong
,
isNetwork
,
isAssign
,
skillUpdate
);
// 当天单变更技能直接人工指派
// 当天单变更技能直接人工指派
if
(
isToday
&&
skillUpdate
)
{
if
(
isToday
&&
skillUpdate
)
{
if
(
isAssign
)
{
if
(
isAssign
)
{
...
@@ -373,7 +373,7 @@ public class OrderInfoServiceImpl implements OrderInfoService {
...
@@ -373,7 +373,7 @@ public class OrderInfoServiceImpl implements OrderInfoService {
order
=
orderFendan
(
order
,
req
,
location
);
order
=
orderFendan
(
order
,
req
,
location
);
clusterId
=
order
.
getOrgClusterId
();
clusterId
=
order
.
getOrgClusterId
();
branchId
=
order
.
getOrgBranchId
();
branchId
=
order
.
getOrgBranchId
();
}
else
if
(
isToday
&&
isBelong
&&
isAssign
)
{
}
else
if
(
isToday
&&
isBelong
)
{
// b.已派人-改约到当天
// b.已派人-改约到当天
// i.自有:优先改约指派给当前工程师
// i.自有:优先改约指派给当前工程师
// (会影响该工程师当天后续工单的时
// (会影响该工程师当天后续工单的时
...
@@ -390,7 +390,7 @@ public class OrderInfoServiceImpl implements OrderInfoService {
...
@@ -390,7 +390,7 @@ public class OrderInfoServiceImpl implements OrderInfoService {
service
.
setServiceType
(
order
.
getSkill
());
service
.
setServiceType
(
order
.
getSkill
());
CapacityQueryDTO
.
Segment
capacity
=
capacityQueryService
.
queryEngineerCapacity
(
order
.
getEngineerCode
(),
service
,
order
.
getDt
(),
expectBegin
.
toLocalTime
(),
expectEnd
.
toLocalTime
());
CapacityQueryDTO
.
Segment
capacity
=
capacityQueryService
.
queryEngineerCapacity
(
order
.
getEngineerCode
(),
service
,
order
.
getDt
(),
expectBegin
.
toLocalTime
(),
expectEnd
.
toLocalTime
());
SkillInfoEntity
skillInfo
=
skillInfoDao
.
getByBrandAndTypeAndSkill
(
order
.
getBrand
(),
order
.
getType
(),
order
.
getSkill
());
SkillInfoEntity
skillInfo
=
skillInfoDao
.
getByBrandAndTypeAndSkill
(
order
.
getBrand
(),
order
.
getType
(),
order
.
getSkill
());
if
(
ObjectUtil
.
isNull
(
capacity
)
||
capacity
.
getStatus
()
!=
1
||
capacity
.
getMaxDuration
()
>
skillInfo
.
getTakeTime
())
{
if
(
ObjectUtil
.
isNull
(
capacity
)
||
capacity
.
getStatus
()
!=
1
||
capacity
.
getMaxDuration
()
<
skillInfo
.
getTakeTime
())
{
order
.
setTranscend
(
1
);
order
.
setTranscend
(
1
);
order
=
OrderUtil
.
handleErrorOrder
(
order
);
order
=
OrderUtil
.
handleErrorOrder
(
order
);
clusterId
=
order
.
getOrgClusterId
();
clusterId
=
order
.
getOrgClusterId
();
...
@@ -399,8 +399,6 @@ public class OrderInfoServiceImpl implements OrderInfoService {
...
@@ -399,8 +399,6 @@ public class OrderInfoServiceImpl implements OrderInfoService {
order
.
setAppointmentMethod
(
AppointmentMethodEnum
.
MANUAL
.
name
());
order
.
setAppointmentMethod
(
AppointmentMethodEnum
.
MANUAL
.
name
());
order
.
setAppointmentStatus
(
OrderFlowEnum
.
INIT
.
name
());
order
.
setAppointmentStatus
(
OrderFlowEnum
.
INIT
.
name
());
sendMsg
(
order
.
getOrgBranchId
(),
order
.
getOrderId
(),
req
.
getExpectBegin
());
sendMsg
(
order
.
getOrgBranchId
(),
order
.
getOrderId
(),
req
.
getExpectBegin
());
}
else
{
order
.
setTranscend
(
1
);
}
}
}
}
}
else
if
(!
isToday
&&
!
isBelong
)
{
}
else
if
(!
isToday
&&
!
isBelong
)
{
...
@@ -438,10 +436,10 @@ public class OrderInfoServiceImpl implements OrderInfoService {
...
@@ -438,10 +436,10 @@ public class OrderInfoServiceImpl implements OrderInfoService {
cutoff
=
CommonUtil
.
isCutoff
(
order
.
getExpectTimeBegin
(),
null
);
cutoff
=
CommonUtil
.
isCutoff
(
order
.
getExpectTimeBegin
(),
null
);
}
}
// 当日单指派策略为人工指派,次日单动态排班自动批量
// 当日单指派策略为人工指派,次日单动态排班自动批量
if
(
isToday
||
cutoff
==
1
)
{
//
if (isToday || cutoff == 1) {
order
.
setAppointmentMethod
(
AppointmentMethodEnum
.
MANUAL
.
name
());
//
order.setAppointmentMethod(AppointmentMethodEnum.MANUAL.name());
order
.
setAppointmentStatus
(
OrderFlowEnum
.
INIT
.
name
());
//
order.setAppointmentStatus(OrderFlowEnum.INIT.name());
}
//
}
order
.
setIsCutoff
(
cutoff
);
order
.
setIsCutoff
(
cutoff
);
order
.
setIsSpecialTime
(
special
);
order
.
setIsSpecialTime
(
special
);
order
.
setOrgClusterId
(
clusterId
);
order
.
setOrgClusterId
(
clusterId
);
...
...
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