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
9916edd2
Commit
9916edd2
authored
Jul 30, 2018
by
ssathu-nisum-com
Committed by
rbonthala-nisum-com
Jul 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Project DropDown data In ManageTeam (#88)
parent
a6a797e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
ProjectServiceImpl.java
...ain/java/com/nisum/mytime/service/ProjectServiceImpl.java
+11
-2
No files found.
src/main/java/com/nisum/mytime/service/ProjectServiceImpl.java
View file @
9916edd2
...
...
@@ -462,9 +462,18 @@ public class ProjectServiceImpl implements ProjectService {
@Override
public
List
<
Project
>
getProjects
(
String
managerId
)
throws
MyTimeException
{
Query
query
=
new
Query
(
Criteria
.
where
(
"managerId"
).
is
(
managerId
)
/*
Query query = new Query(Criteria.where("managerId").is(managerId)
.and("status").ne("Completed"));
return
mongoTemplate
.
find
(
query
,
Project
.
class
);
return mongoTemplate.find(query, Project.class);*/
List
<
Project
>
projectList
=
new
ArrayList
<>();
List
<
Project
>
projects
=
projectRepo
.
findByDeliveryLeadIds
(
managerId
);
for
(
Project
project
:
projects
)
{
if
(!
project
.
getStatus
().
equals
(
"Completed"
))
{
projectList
.
add
(
project
);
}
}
return
projectList
;
}
@Override
...
...
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