Skip to content

Commit

Permalink
hide staffstatus records in staff status overview and colliding shifts
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrenn committed Feb 2, 2024
1 parent 26c53fa commit b616cf3
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,7 @@ protected Collection<StaffStatusEntryOutVO> handleGetCollidingStaffStatusEntries
Staff staff = dutyRosterTurn.getStaff();
if (staff != null) {
StaffStatusEntryDao staffStatusEntryDao = this.getStaffStatusEntryDao();
collidingStaffStatusEntries = staffStatusEntryDao.findByStaffInterval(staff.getId(), dutyRosterTurn.getStart(), dutyRosterTurn.getStop(), false, true, false);
collidingStaffStatusEntries = staffStatusEntryDao.findByStaffInterval(staff.getId(), dutyRosterTurn.getStart(), dutyRosterTurn.getStop(), false, true, true, false);
staffStatusEntryDao.toStaffStatusEntryOutVOCollection(collidingStaffStatusEntries);
} else {
collidingStaffStatusEntries = new ArrayList<StaffStatusEntryOutVO>();
Expand All @@ -1325,7 +1325,7 @@ protected Collection<StaffStatusEntryOutVO> handleGetCollidingStaffStatusEntries
CheckIDUtil.checkStaffId(staffId, this.getStaffDao());
StaffStatusEntryDao staffStatusEntryDao = this.getStaffStatusEntryDao();
Collection collidingStaffStatusEntries = staffStatusEntryDao
.findByStaffInterval(staffId, CommonUtil.dateToTimestamp(start), CommonUtil.dateToTimestamp(stop), false, true, false);
.findByStaffInterval(staffId, CommonUtil.dateToTimestamp(start), CommonUtil.dateToTimestamp(stop), false, true, true, false);
staffStatusEntryDao.toStaffStatusEntryOutVOCollection(collidingStaffStatusEntries);
return collidingStaffStatusEntries;
}
Expand Down Expand Up @@ -1712,7 +1712,8 @@ protected Collection<StaffStatusEntryOutVO> handleGetStaffStatus(AuthenticationV
CheckIDUtil.checkStaffCategoryId(staffCategoryId, this.getStaffCategoryDao());
}
StaffStatusEntryDao statusEntryDao = this.getStaffStatusEntryDao();
Collection staffStatusEntries = statusEntryDao.findStaffStatus(CommonUtil.dateToTimestamp(now), staffId, departmentId, staffCategoryId, staffActive, hideAvailability, psf);
Collection staffStatusEntries = statusEntryDao.findStaffStatus(CommonUtil.dateToTimestamp(now), staffId, departmentId, staffCategoryId, staffActive, true, hideAvailability,
psf);
statusEntryDao.toStaffStatusEntryOutVOCollection(staffStatusEntries);
return staffStatusEntries;
}
Expand Down Expand Up @@ -1746,7 +1747,7 @@ protected Collection<StaffStatusEntryOutVO> handleGetStaffStatusEntryInterval(
}
StaffStatusEntryDao statusEntryDao = this.getStaffStatusEntryDao();
Collection staffStatusEntries = statusEntryDao.findByDepartmentCategoryInterval(departmentId, staffCategoryId, CommonUtil.dateToTimestamp(from),
CommonUtil.dateToTimestamp(to), null, null, hideAvailability);
CommonUtil.dateToTimestamp(to), null, true, true, hideAvailability);
statusEntryDao.toStaffStatusEntryOutVOCollection(staffStatusEntries);
if (sort) {
staffStatusEntries = new ArrayList(staffStatusEntries);
Expand Down

0 comments on commit b616cf3

Please sign in to comment.