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 0b8494e0
authored
Nov 08, 2023
by
huangjinxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:服务变更记录服务开始结束时间
1 parent
63ba6ded
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 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 @
0b8494e
...
@@ -151,6 +151,12 @@ public class OrderInfoServiceImpl implements OrderInfoService {
...
@@ -151,6 +151,12 @@ public class OrderInfoServiceImpl implements OrderInfoService {
if
(
StringUtils
.
isNotBlank
(
request
.
getDescription
()))
{
if
(
StringUtils
.
isNotBlank
(
request
.
getDescription
()))
{
orderInfo
.
setDescription
(
request
.
getDescription
());
orderInfo
.
setDescription
(
request
.
getDescription
());
}
}
if
(
BeanServiceFlowEnum
.
STARTED
.
getStatus
().
equals
(
BeanServiceFlowEnum
.
getStatusByName
(
request
.
getStage
())))
{
orderInfo
.
setActualStartTime
(
LocalDateTimeUtil
.
of
(
request
.
getHappen
()));
}
if
(
BeanServiceFlowEnum
.
FINISHED
.
getStatus
().
equals
(
BeanServiceFlowEnum
.
getStatusByName
(
request
.
getStage
())))
{
orderInfo
.
setActualEndTime
(
LocalDateTimeUtil
.
of
(
request
.
getHappen
()));
}
orderInfoDao
.
save
(
orderInfo
);
orderInfoDao
.
save
(
orderInfo
);
//记录流程
//记录流程
commonService
.
addOrderEvent
(
request
.
getOrderId
(),
""
,
"BEAN"
,
"BEAN"
,
OrderStatusEnum
.
NORMAL
.
getDescription
(),
request
.
getStage
(),
""
,
LocalDateTimeUtil
.
of
(
request
.
getHappen
()));
commonService
.
addOrderEvent
(
request
.
getOrderId
(),
""
,
"BEAN"
,
"BEAN"
,
OrderStatusEnum
.
NORMAL
.
getDescription
(),
request
.
getStage
(),
""
,
LocalDateTimeUtil
.
of
(
request
.
getHappen
()));
...
@@ -336,7 +342,7 @@ public class OrderInfoServiceImpl implements OrderInfoService {
...
@@ -336,7 +342,7 @@ public class OrderInfoServiceImpl implements OrderInfoService {
//处理一家多单
//处理一家多单
// order = handleMultipleOrders(order);
// order = handleMultipleOrders(order);
if
(!
orderDt
.
isEqual
(
expectBegin
.
toLocalDate
())){
if
(!
orderDt
.
isEqual
(
expectBegin
.
toLocalDate
()))
{
order
=
handleMultipleOrders
(
order
);
order
=
handleMultipleOrders
(
order
);
}
}
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