Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mytime
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Narendar Vakiti
mytime
Commits
4976b5f3
Commit
4976b5f3
authored
Aug 14, 2018
by
ssathu-nisum-com
Committed by
tdutta-nisum-com
Aug 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MT-150_TeamMateEndDateIsShouldBeUpdateWithTheProjectEndDate (#152)
parent
2d52e26a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
ProjectController.java
...n/java/com/nisum/mytime/controller/ProjectController.java
+1
-1
ProjectServiceImpl.java
...ain/java/com/nisum/mytime/service/ProjectServiceImpl.java
+2
-1
No files found.
src/main/java/com/nisum/mytime/controller/ProjectController.java
View file @
4976b5f3
...
@@ -85,7 +85,7 @@ public class ProjectController {
...
@@ -85,7 +85,7 @@ public class ProjectController {
List
<
Project
>
projects
=
projectRepo
.
findByAccountId
(
project
.
getAccountId
());
List
<
Project
>
projects
=
projectRepo
.
findByAccountId
(
project
.
getAccountId
());
for
(
Project
existproject
:
projects
)
{
for
(
Project
existproject
:
projects
)
{
if
(
project
.
getProjectName
().
equalsIgnoreCase
(
existproject
.
getProjectName
())
if
(
project
.
getProjectName
().
equalsIgnoreCase
(
existproject
.
getProjectName
())
&&
project
.
getProjectId
()
!=
existproject
.
getProjectId
(
))
{
&&
!
project
.
getProjectId
().
equals
(
existproject
.
getProjectId
()
))
{
projectNameCount
++;
projectNameCount
++;
}
}
}
}
...
...
src/main/java/com/nisum/mytime/service/ProjectServiceImpl.java
View file @
4976b5f3
...
@@ -284,6 +284,7 @@ public class ProjectServiceImpl implements ProjectService {
...
@@ -284,6 +284,7 @@ public class ProjectServiceImpl implements ProjectService {
emp
.
setProjectName
(
projectDB
.
getProjectName
());
emp
.
setProjectName
(
projectDB
.
getProjectName
());
// MT-79:Maintatin the managerids in List
// MT-79:Maintatin the managerids in List
// emp.setManagerIds(projectDB.getManagerIds());
// emp.setManagerIds(projectDB.getManagerIds());
emp
.
setEndDate
(
projectDB
.
getProjectEndDate
());
projectTeamMatesRepo
.
save
(
emp
);
projectTeamMatesRepo
.
save
(
emp
);
}
}
}
}
...
@@ -703,7 +704,7 @@ public class ProjectServiceImpl implements ProjectService {
...
@@ -703,7 +704,7 @@ public class ProjectServiceImpl implements ProjectService {
List
<
ProjectTeamMate
>
teamMatesList
=
new
ArrayList
<>();
List
<
ProjectTeamMate
>
teamMatesList
=
new
ArrayList
<>();
List
<
ProjectTeamMate
>
teamMates
=
projectTeamMatesRepo
.
findByProjectId
(
projectId
);
List
<
ProjectTeamMate
>
teamMates
=
projectTeamMatesRepo
.
findByProjectId
(
projectId
);
for
(
ProjectTeamMate
projectTeamMate
:
teamMates
)
{
for
(
ProjectTeamMate
projectTeamMate
:
teamMates
)
{
if
(
projectTeamMate
.
getEndDate
()
!=
null
)
{
if
(
projectTeamMate
.
getEndDate
()
!=
null
)
{
// Active
// Active
if
(
statusFlag
.
equals
(
MyTimeUtils
.
ACTIVE
)
&&
projectTeamMate
.
getEndDate
().
compareTo
(
new
Date
())
>=
0
)
if
(
statusFlag
.
equals
(
MyTimeUtils
.
ACTIVE
)
&&
projectTeamMate
.
getEndDate
().
compareTo
(
new
Date
())
>=
0
)
teamMatesList
.
add
(
projectTeamMate
);
teamMatesList
.
add
(
projectTeamMate
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment