Compare commits
3 Commits
4e2ec4d94f
...
033ed0046e
Author | SHA1 | Date |
---|---|---|
|
033ed0046e | |
|
fdbd667b7d | |
|
baeb72fe7d |
|
@ -121,6 +121,16 @@ export class IndexItemManager extends BaseIndexManager<ItemEntity> {
|
||||||
queryBuilder.andWhere(`${this.tableName}.show_to_booking = true`);
|
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;
|
return queryBuilder;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,11 +40,14 @@ export class TicketDataService extends BaseDataService<QueueTicket> {
|
||||||
}
|
}
|
||||||
|
|
||||||
async loginQueue(id: string): Promise<QueueOrder> {
|
async loginQueue(id: string): Promise<QueueOrder> {
|
||||||
|
const start = moment().startOf('day').valueOf();
|
||||||
|
const end = moment().endOf('day').valueOf();
|
||||||
|
|
||||||
const order = await this.order.findOne({
|
const order = await this.order.findOne({
|
||||||
relations: ['tickets'],
|
relations: ['tickets'],
|
||||||
where: [
|
where: [
|
||||||
{ transaction_id: id },
|
{ transaction_id: id, date: Between(start, end) },
|
||||||
{ code: id, transaction_id: Not(IsNull()) },
|
{ code: id, transaction_id: Not(IsNull()), date: Between(start, end) },
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue