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 7087cfaf
authored
Nov 14, 2023
by
刘鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 日历时间窗计算除当天以外时间差值错误
1 parent
7c4c01e1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
project-dispatch/src/main/java/com/dituhui/pea/dispatch/service/impl/EngineerCalendarServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/EngineerCalendarServiceImpl.java
project-dispatch/src/main/java/com/dituhui/pea/dispatch/service/impl/EngineerCalendarServiceImpl.java
View file @
7087cfa
...
...
@@ -592,7 +592,7 @@ public class EngineerCalendarServiceImpl implements EngineerCalendarService {
LocalDateTime
workStartTime
=
DateUtils
.
localDateTimeFromStr
(
String
.
format
(
"%s %s:00"
,
targetDate
,
businessEntity
.
getWorkOn
()));
LocalDateTime
workEndTime
=
DateUtils
.
localDateTimeFromStr
(
String
.
format
(
"%s %s:00"
,
targetDate
,
businessEntity
.
getWorkOff
()));
final
LocalDateTime
minDate
=
LocalDateTime
.
of
(
LocalDate
.
now
()
,
LocalTime
.
MIN
);
final
LocalDateTime
minDate
=
LocalDateTime
.
of
(
targetDate
,
LocalTime
.
MIN
);
List
<
OccupyInfoDetail
>
configs
=
getEngineerWorkDayCalendar
(
engineerCode
,
targetDate
);
if
(
CollectionUtils
.
isEmpty
(
configs
))
{
...
...
project-order/src/main/java/com/dituhui/pea/order/service/impl/EngineerCalendarServiceImpl.java
View file @
7087cfa
...
...
@@ -629,7 +629,7 @@ public class EngineerCalendarServiceImpl implements EngineerCalendarService {
LocalDateTime
workStartTime
=
DateUtils
.
localDateTimeFromStr
(
String
.
format
(
"%s %s:00"
,
targetDate
,
businessEntity
.
getWorkOn
()));
LocalDateTime
workEndTime
=
DateUtils
.
localDateTimeFromStr
(
String
.
format
(
"%s %s:00"
,
targetDate
,
businessEntity
.
getWorkOff
()));
final
LocalDateTime
minDate
=
LocalDateTime
.
of
(
LocalDate
.
now
()
,
LocalTime
.
MIN
);
final
LocalDateTime
minDate
=
LocalDateTime
.
of
(
targetDate
,
LocalTime
.
MIN
);
List
<
OccupyInfoDetail
>
configs
=
getEngineerWorkDayCalendar
(
engineerCode
,
targetDate
);
if
(
CollectionUtils
.
isEmpty
(
configs
))
{
...
...
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