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
e3d77a40
Commit
e3d77a40
authored
May 15, 2019
by
Vijay Akula
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified the code for shift details
parent
9355be90
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
36 deletions
+21
-36
ProjectEndDateScheduler.java
...a/com/nisum/myteam/schedular/ProjectEndDateScheduler.java
+0
-1
ResourceAllocationService.java
.../nisum/myteam/service/impl/ResourceAllocationService.java
+17
-16
DateUtils.java
src/main/java/com/nisum/myteam/utils/DateUtils.java
+0
-15
MyTeamDateUtils.java
src/main/java/com/nisum/myteam/utils/MyTeamDateUtils.java
+4
-4
No files found.
src/main/java/com/nisum/myteam/schedular/ProjectEndDateScheduler.java
View file @
e3d77a40
...
...
@@ -7,7 +7,6 @@ import com.nisum.myteam.model.dao.Project;
import
com.nisum.myteam.service.IEmployeeService
;
import
com.nisum.myteam.service.IMailService
;
import
com.nisum.myteam.service.IProjectService
;
import
com.nisum.myteam.utils.DateUtils
;
import
com.nisum.myteam.utils.MyTeamDateUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
src/main/java/com/nisum/myteam/service/impl/ResourceAllocationService.java
View file @
e3d77a40
...
...
@@ -592,24 +592,25 @@ public class ResourceAllocationService implements IResourceAllocationService {
//
// }
if
(
resource
.
getBillingEndDate
().
compareTo
(
new
Date
())
>=
0
)
{
Employee
employee
=
employeeService
.
getEmployeeById
(
resource
.
getEmployeeId
());
EmployeeShiftsVO
shiftsVO
=
new
EmployeeShiftsVO
();
shiftsVO
.
setEmployeeId
(
employee
.
getEmployeeId
());
shiftsVO
.
setEmployeeName
(
employee
.
getEmployeeName
());
shiftsVO
.
setEmailId
(
employee
.
getEmailId
());
shiftsVO
.
setMobileNo
(
employee
.
getMobileNumber
());
shiftsVO
.
setProjectName
(
project
.
getProjectName
());
if
(
employee
!=
null
)
{
if
(
shift
.
equalsIgnoreCase
(
employee
.
getShift
()))
resourcesList
.
add
(
shiftsVO
);
else
if
(
employee
.
getShift
()
==
null
&&
Shifts
.
SHIFT1
.
getShiftType
().
equalsIgnoreCase
(
shift
))
resourcesList
.
add
(
shiftsVO
);
Employee
employee
=
employeeService
.
getEmployeeById
(
resource
.
getEmployeeId
());
EmployeeShiftsVO
shiftsVO
=
new
EmployeeShiftsVO
();
shiftsVO
.
setEmployeeId
(
employee
.
getEmployeeId
());
shiftsVO
.
setEmployeeName
(
employee
.
getEmployeeName
());
shiftsVO
.
setEmailId
(
employee
.
getEmailId
());
shiftsVO
.
setMobileNo
(
employee
.
getMobileNumber
());
shiftsVO
.
setProjectName
(
project
.
getProjectName
());
if
(
employee
!=
null
)
{
if
(
shift
.
equalsIgnoreCase
(
employee
.
getShift
()))
resourcesList
.
add
(
shiftsVO
);
else
if
(
employee
.
getShift
()
==
null
&&
Shifts
.
SHIFT1
.
getShiftType
().
equalsIgnoreCase
(
shift
))
resourcesList
.
add
(
shiftsVO
);
}
}
}
//for
}
...
...
src/main/java/com/nisum/myteam/utils/DateUtils.java
deleted
100644 → 0
View file @
9355be90
package
com
.
nisum
.
myteam
.
utils
;
import
lombok.extern.slf4j.Slf4j
;
import
java.time.LocalDate
;
import
java.time.ZoneId
;
import
java.util.Calendar
;
import
java.util.Date
;
@Slf4j
public
class
DateUtils
{
}
src/main/java/com/nisum/myteam/utils/MyTeamDateUtils.java
View file @
e3d77a40
...
...
@@ -32,9 +32,9 @@ public class MyTeamDateUtils {
return
yesterday
;
}
public
static
void
main
(
String
[]
args
)
{
MyTeamDateUtils
.
getDayLessThanDate
(
new
Date
());
}
//
public static void main(String[] args)
//
{
//
MyTeamDateUtils.getDayLessThanDate(new Date());
//
}
}
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