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 e7743de8
authored
Nov 14, 2023
by
huangjinxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:工单改约改约原因,技能耗时处理
1 parent
917829e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 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 @
e7743de
...
@@ -238,7 +238,9 @@ public class OrderInfoServiceImpl implements OrderInfoService {
...
@@ -238,7 +238,9 @@ public class OrderInfoServiceImpl implements OrderInfoService {
order
.
setDt
(
expectBegin
.
toLocalDate
());
order
.
setDt
(
expectBegin
.
toLocalDate
());
order
.
setExpectTimeBegin
(
expectBegin
);
order
.
setExpectTimeBegin
(
expectBegin
);
order
.
setExpectTimeEnd
(
expectEnd
);
order
.
setExpectTimeEnd
(
expectEnd
);
order
.
setExpectTimeDesc
(
req
.
getExpectDesc
());
if
(
StringUtils
.
isNotBlank
(
req
.
getExpectDesc
()))
{
order
.
setExpectTimeDesc
(
req
.
getExpectDesc
());
}
order
.
setTranscend
(
0
);
order
.
setTranscend
(
0
);
order
.
setOrderStatus
(
OrderStatusEnum
.
RESCHEDULED
.
getCode
());
order
.
setOrderStatus
(
OrderStatusEnum
.
RESCHEDULED
.
getCode
());
order
.
setReschedulingReason
(
StringUtils
.
isNotBlank
(
req
.
getReschedulingReason
())
?
req
.
getReschedulingReason
()
:
order
.
getReschedulingReason
());
order
.
setReschedulingReason
(
StringUtils
.
isNotBlank
(
req
.
getReschedulingReason
())
?
req
.
getReschedulingReason
()
:
order
.
getReschedulingReason
());
...
@@ -386,6 +388,14 @@ public class OrderInfoServiceImpl implements OrderInfoService {
...
@@ -386,6 +388,14 @@ public class OrderInfoServiceImpl implements OrderInfoService {
}
}
}
}
// 修改技能时处理工单耗时
if
(
skillUpdate
)
{
SkillInfoEntity
skillInfoEntity
=
skillInfoDao
.
getByBrandAndTypeAndSkill
(
order
.
getBrand
(),
order
.
getType
(),
order
.
getSkill
());
if
(
ObjectUtil
.
isNull
(
skillInfoEntity
))
{
return
Result
.
failed
(
StatusCodeEnum
.
ORDER_SKILL_NOT_EXISTS
);
}
order
.
setTakeTime
(
skillInfoEntity
.
getTakeTime
());
}
//处理一家多单
//处理一家多单
// order = handleMultipleOrders(order);
// order = handleMultipleOrders(order);
...
...
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