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 7d9487b1
authored
Jul 11, 2023
by
丁伟峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix: 列表添加
1 parent
80e3ec30
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 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 @
7d9487b
...
@@ -94,14 +94,14 @@ public class EngineerCalendarServiceImpl implements EngineerCalendarService {
...
@@ -94,14 +94,14 @@ 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
=
new
ArrayList
<>
();
List
<
EngineerCalendarDTO
.
Content
>
contents
=
calander
.
getContent
();
// 有配置
// 有配置
for
(
CapacityEngineerCalendarEntity
e
:
configs
.
get
(
sDate
))
{
for
(
CapacityEngineerCalendarEntity
e
:
configs
.
get
(
sDate
))
{
EngineerCalendarDTO
.
Content
content
=
new
EngineerCalendarDTO
.
Content
();
EngineerCalendarDTO
.
Content
content
=
new
EngineerCalendarDTO
.
Content
();
content
.
setType
(
"leave"
);
content
.
setType
(
"leave"
);
content
.
setTitle
(
e
.
getType
());
content
.
setTitle
(
e
.
getType
());
content
.
setValue
(
getCalendarDuration
(
e
.
getStartTime
(),
e
.
getEndTime
()));
content
.
setValue
(
getCalendarDuration
(
e
.
getStartTime
(),
e
.
getEndTime
()));
c
alander
.
getContent
()
.
add
(
content
);
c
ontents
.
add
(
content
);
}
}
}
}
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