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 6ca2a3df
authored
Jul 11, 2023
by
丁伟峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: 列表添加
1 parent
7d9487b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
project-order/src/main/java/com/dituhui/pea/order/service/impl/EngineerCalendarServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/EngineerCalendarServiceImpl.java
View file @
6ca2a3d
...
@@ -94,7 +94,7 @@ public class EngineerCalendarServiceImpl implements EngineerCalendarService {
...
@@ -94,7 +94,7 @@ public class EngineerCalendarServiceImpl implements EngineerCalendarService {
EngineerCalendarDTO
.
Calendar
calander
=
null
;
EngineerCalendarDTO
.
Calendar
calander
=
null
;
calander
=
getEmptyCalendar
(
teamIds
.
get
(
0
),
sDate
);
calander
=
getEmptyCalendar
(
teamIds
.
get
(
0
),
sDate
);
if
(
configs
.
containsKey
(
sDate
))
{
if
(
configs
.
containsKey
(
sDate
))
{
List
<
EngineerCalendarDTO
.
Content
>
contents
=
calander
.
getContent
();
List
<
EngineerCalendarDTO
.
Content
>
contents
=
new
ArrayList
<>
();
// 有配置
// 有配置
for
(
CapacityEngineerCalendarEntity
e
:
configs
.
get
(
sDate
))
{
for
(
CapacityEngineerCalendarEntity
e
:
configs
.
get
(
sDate
))
{
EngineerCalendarDTO
.
Content
content
=
new
EngineerCalendarDTO
.
Content
();
EngineerCalendarDTO
.
Content
content
=
new
EngineerCalendarDTO
.
Content
();
...
@@ -103,6 +103,10 @@ public class EngineerCalendarServiceImpl implements EngineerCalendarService {
...
@@ -103,6 +103,10 @@ public class EngineerCalendarServiceImpl implements EngineerCalendarService {
content
.
setValue
(
getCalendarDuration
(
e
.
getStartTime
(),
e
.
getEndTime
()));
content
.
setValue
(
getCalendarDuration
(
e
.
getStartTime
(),
e
.
getEndTime
()));
contents
.
add
(
content
);
contents
.
add
(
content
);
}
}
List
<
EngineerCalendarDTO
.
Content
>
mergedList
=
new
ArrayList
<>();
mergedList
.
addAll
(
calander
.
getContent
());
mergedList
.
addAll
(
contents
);
calander
.
setContent
(
mergedList
);
}
}
calendars
.
add
(
calander
);
calendars
.
add
(
calander
);
}
}
...
...
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