feat: add filtering option for items based on time group presence
parent
399ca0bdda
commit
baeb72fe7d
|
@ -121,6 +121,16 @@ export class IndexItemManager extends BaseIndexManager<ItemEntity> {
|
|||
queryBuilder.andWhere(`${this.tableName}.show_to_booking = true`);
|
||||
}
|
||||
|
||||
if (this.filterParam.without_time_group != null) {
|
||||
const withoutTimeGroup = this.filterParam.without_time_group
|
||||
? 'Is Null'
|
||||
: 'Is Not Null';
|
||||
|
||||
queryBuilder.andWhere(
|
||||
`${this.tableName}.time_group_id ${withoutTimeGroup}`,
|
||||
);
|
||||
}
|
||||
|
||||
return queryBuilder;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue