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 7e780701
authored
Nov 13, 2023
by
chamberone
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
https://zhangguoping@gitlab.dituhui.com/bsh/project/pr…
…oject.git into develop
2 parents
d4774b95
1431b869
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 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 @
7e78070
...
@@ -239,6 +239,7 @@ public class OrderInfoServiceImpl implements OrderInfoService {
...
@@ -239,6 +239,7 @@ public class OrderInfoServiceImpl implements OrderInfoService {
order
.
setExpectTimeEnd
(
expectEnd
);
order
.
setExpectTimeEnd
(
expectEnd
);
order
.
setExpectTimeDesc
(
req
.
getExpectDesc
());
order
.
setExpectTimeDesc
(
req
.
getExpectDesc
());
order
.
setOrderStatus
(
OrderStatusEnum
.
RESCHEDULED
.
getCode
());
order
.
setOrderStatus
(
OrderStatusEnum
.
RESCHEDULED
.
getCode
());
order
.
setReschedulingReason
(
StringUtils
.
isNotBlank
(
req
.
getReschedulingReason
())
?
req
.
getReschedulingReason
()
:
order
.
getReschedulingReason
());
boolean
skillUpdate
=
false
;
boolean
skillUpdate
=
false
;
OrgGroupEntity
orgGroupEntity
=
null
;
OrgGroupEntity
orgGroupEntity
=
null
;
if
(
StringUtils
.
isNotBlank
(
order
.
getOrgGroupId
()))
{
if
(
StringUtils
.
isNotBlank
(
order
.
getOrgGroupId
()))
{
...
@@ -304,7 +305,6 @@ public class OrderInfoServiceImpl implements OrderInfoService {
...
@@ -304,7 +305,6 @@ public class OrderInfoServiceImpl implements OrderInfoService {
}
}
}
}
}
}
order
.
setReschedulingReason
(
StringUtils
.
isNotBlank
(
req
.
getReschedulingReason
())
?
req
.
getReschedulingReason
()
:
order
.
getReschedulingReason
());
OrgGroupEntity
groupEntity
=
orgGroupDao
.
getByGroupId
(
order
.
getOrgGroupId
());
OrgGroupEntity
groupEntity
=
orgGroupDao
.
getByGroupId
(
order
.
getOrgGroupId
());
//是否今天
//是否今天
...
@@ -408,7 +408,8 @@ public class OrderInfoServiceImpl implements OrderInfoService {
...
@@ -408,7 +408,8 @@ public class OrderInfoServiceImpl implements OrderInfoService {
// 登记事件
// 登记事件
commonService
.
addOrderEvent
(
req
.
getOrderId
(),
""
,
req
.
getOperator
(),
req
.
getOperator
(),
OrderEventEnum
.
recontracting
.
getEvent
(),
commonService
.
addOrderEvent
(
req
.
getOrderId
(),
""
,
req
.
getOperator
(),
req
.
getOperator
(),
OrderEventEnum
.
recontracting
.
getEvent
(),
String
.
format
(
OrderEventEnum
.
recontracting
.
getMsg
(),
engineerName
+
"-"
+
(
ObjectUtil
.
isNotNull
(
orgTeamEntity
)
?
orgTeamEntity
.
getTeamName
()
:
""
),
String
.
format
(
OrderEventEnum
.
recontracting
.
getMsg
(),
engineerName
+
"-"
+
(
ObjectUtil
.
isNotNull
(
orgTeamEntity
)
?
orgTeamEntity
.
getTeamName
()
:
""
),
ObjectUtil
.
isNotNull
(
orgGroupEntity
)
?
orgGroupEntity
.
getGroupName
()
:
""
,
req
.
getExpectBegin
(),
req
.
getReschedulingReason
()),
""
);
ObjectUtil
.
isNotNull
(
orgGroupEntity
)
?
orgGroupEntity
.
getGroupName
()
:
""
,
req
.
getExpectBegin
(),
req
.
getReschedulingReason
()),
StringUtils
.
isNotBlank
(
req
.
getReschedulingReason
())
?
"改约原因:"
+
req
.
getReschedulingReason
()
:
""
);
return
Result
.
success
(
null
);
return
Result
.
success
(
null
);
}
}
...
@@ -538,7 +539,7 @@ public class OrderInfoServiceImpl implements OrderInfoService {
...
@@ -538,7 +539,7 @@ public class OrderInfoServiceImpl implements OrderInfoService {
*/
*/
private
OrderInfoEntity
orderFendan
(
OrderInfoEntity
order
,
OrderReschedule
req
,
Location
location
)
{
private
OrderInfoEntity
orderFendan
(
OrderInfoEntity
order
,
OrderReschedule
req
,
Location
location
)
{
order
.
setServiceStatus
(
ServiceStatusEnum
.
INIT
.
getCode
());
order
.
setServiceStatus
(
ServiceStatusEnum
.
INIT
.
getCode
());
if
(
StringUtils
.
isBlank
(
req
.
getDescription
()))
{
if
(
StringUtils
.
is
Not
Blank
(
req
.
getDescription
()))
{
order
.
setDescription
(
order
.
getDescription
());
order
.
setDescription
(
order
.
getDescription
());
}
}
//获取省市区
//获取省市区
...
@@ -570,8 +571,11 @@ public class OrderInfoServiceImpl implements OrderInfoService {
...
@@ -570,8 +571,11 @@ public class OrderInfoServiceImpl implements OrderInfoService {
}
else
{
}
else
{
// 根据分单工作队,填写clusterId/branchId/groupId/teamId等
// 根据分单工作队,填写clusterId/branchId/groupId/teamId等
OrgTeamInfo
teamInfo
=
fendanResult
.
getResult
();
OrgTeamInfo
teamInfo
=
fendanResult
.
getResult
();
order
.
setOrgClusterId
(
teamInfo
.
getClusterId
());
order
.
setOrgGroupId
(
teamInfo
.
getGroupId
());
order
.
setOrgGroupId
(
teamInfo
.
getGroupId
());
order
.
setOrgTeamId
(
teamInfo
.
getTeamId
());
order
.
setOrgTeamId
(
teamInfo
.
getTeamId
());
order
.
setAppointmentMethod
(
AppointmentMethodEnum
.
AUTO_BATCH
.
name
());
order
.
setAppointmentStatus
(
OrderFlowEnum
.
INIT
.
name
());
//处理超派,特殊时间段
//处理超派,特殊时间段
// order.setIsSpecialTime(CommonUtil.isSpecial(order.getExpectTimeBegin().toLocalTime(),
// order.setIsSpecialTime(CommonUtil.isSpecial(order.getExpectTimeBegin().toLocalTime(),
// order.getExpectTimeEnd().toLocalTime(), teamInfo.getWorkOn(), teamInfo.getWorkOff()));
// order.getExpectTimeEnd().toLocalTime(), teamInfo.getWorkOn(), teamInfo.getWorkOff()));
...
...
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