FINERACT-1658:GroupFilter_In_Center

This commit is contained in:
rrpawar96
2022-07-17 18:41:19 +02:00
committed by Arnold Gálovics
parent c2d5a735d6
commit e4e5fc0ceb
3 changed files with 40 additions and 3 deletions
@@ -185,6 +185,12 @@ public class GroupReadPlatformServiceImpl implements GroupReadPlatformService {
sqlBuilder.append(" ").append(extraCriteria.getSQLTemplate());
if (searchParameters != null) {
if (searchParameters.isOrphansOnly()) {
sqlBuilder.append(" and g.parent_id is NULL");
}
}
if (parameters != null) {
if (parameters.isOrderByRequested()) {
sqlBuilder.append(parameters.orderBySql());
@@ -226,9 +232,6 @@ public class GroupReadPlatformServiceImpl implements GroupReadPlatformService {
}
extraCriteria.addNonNullCriteria("g.staff_id =", searchCriteria.getStaffId());
if (searchCriteria.isOrphansOnly()) {
extraCriteria.addNonNullCriteria("g.parent_id IS", "NULL");
}
return extraCriteria;
}