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
5f63bed4
Commit
5f63bed4
authored
May 29, 2019
by
Vijay Akula
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified code for employee sub status
parent
a3c1f534
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
EmployeeService.java
...n/java/com/nisum/myteam/service/impl/EmployeeService.java
+2
-1
No files found.
src/main/java/com/nisum/myteam/service/impl/EmployeeService.java
View file @
5f63bed4
...
...
@@ -212,7 +212,7 @@ public class EmployeeService implements IEmployeeService {
return
employeeRepo
.
findAll
(
new
Sort
(
Sort
.
Direction
.
ASC
,
"employeeName"
));
}
else
if
(
status
.
equals
(
"Vacation"
))
{
Query
query
=
new
Query
();
query
.
addCriteria
(
Criteria
.
where
(
"empSubStatus"
).
ne
(
"Resigned"
).
andOperator
(
Criteria
.
where
(
"empSubStatus"
).
ne
(
null
)));
query
.
addCriteria
(
Criteria
.
where
(
"empSubStatus"
).
ne
(
"Resigned"
).
andOperator
(
Criteria
.
where
(
"empSubStatus"
).
ne
(
null
)
,
Criteria
.
where
(
"empSubStatus"
).
ne
(
""
)
));
return
mongoTemplate
.
find
(
query
,
Employee
.
class
);
}
else
if
(
status
.
equals
(
"Resigned"
))
{
return
employeeRepo
.
findByEmpSubStatusOrderByEmployeeNameAsc
(
"Resigned"
);
...
...
@@ -221,6 +221,7 @@ public class EmployeeService implements IEmployeeService {
}
}
@Override
public
List
<
Account
>
getAccounts
()
throws
MyTeamException
{
return
accountService
.
getAllAccounts
();
...
...
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