UncompletedBased::joinWaitTable

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. UncompletedBased
  4. joinWaitTable
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/counter/counterquerybuilder/idle/uncompletedbased.php
  • Класс: Bitrix\Crm\Counter\CounterQueryBuilder\Idle\UncompletedBased
  • Вызов: UncompletedBased::joinWaitTable
private function joinWaitTable(Query $query, QueryParams $params): void
{
	$query->registerRuntimeField(
		'',
		new ReferenceField('W',
			WaitTable::getEntity(),
			[
				'=ref.OWNER_ID' => 'this.ID',
				'=ref.OWNER_TYPE_ID' => new SqlExpression($params->entityTypeId()),
				'=ref.COMPLETED' => new SqlExpression('?s', 'N')
			],
			['join_type' => 'LEFT']
		)
	);
}

Добавить комментарий