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 2823b2ba
authored
Nov 16, 2023
by
刘鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(加单确认): 加单确认时, 客户意向时间也同时更改
1 parent
cbfabeb2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
project-order/src/main/java/com/dituhui/pea/order/service/impl/PeaOuterAPIServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/PeaOuterAPIServiceImpl.java
View file @
2823b2b
...
...
@@ -37,9 +37,11 @@ import org.locationtech.spatial4j.shape.Rectangle;
import
org.springframework.stereotype.Service
;
import
java.math.BigDecimal
;
import
java.text.MessageFormat
;
import
java.time.Duration
;
import
java.time.LocalDate
;
import
java.time.LocalDateTime
;
import
java.time.LocalTime
;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.HashSet
;
...
...
@@ -186,6 +188,12 @@ public class PeaOuterAPIServiceImpl implements PeaOuterAPIService {
orderInfo
.
setPlanStartTime
(
planStartTime
);
orderInfo
.
setPlanEndTime
(
planEndTime
);
LocalDate
date
=
planStartTime
.
toLocalDate
();
LocalTime
exceptStartHour
=
LocalTime
.
of
(
planStartTime
.
getHour
(),
0
);
orderInfo
.
setExpectTimeBegin
(
LocalDateTime
.
of
(
date
,
exceptStartHour
));
LocalTime
exceptEndHour
=
exceptStartHour
.
plusHours
(
2
);
orderInfo
.
setExpectTimeEnd
(
LocalDateTime
.
of
(
date
,
exceptEndHour
));
orderInfo
.
setApplyNote
(
MessageFormat
.
format
(
"{0}-{1}"
,
DateTimeUtil
.
formatTime
(
exceptStartHour
),
DateTimeUtil
.
formatTime
(
exceptEndHour
)));
}
orderInfo
.
setReasonForFailure
(
request
.
getReasonForFailure
());
...
...
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