CountableBased::getQuantityExpression

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CountableBased
  4. getQuantityExpression
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/counter/counterquerybuilder/incomingchannel/compatible.php
  • Класс: Bitrix\Crm\Counter\CounterQueryBuilder\IncomingChannel\Compatible
  • Вызов: Compatible::getQuantityExpression
private function getQuantityExpression(QueryParams $params): ExpressionField
{
	if ($params->useDistinct())
	{
		return new ExpressionField('QTY', 'COUNT(DISTINCT %s)', 'ID');
	}
	return new ExpressionField('QTY', 'COUNT(%s)', 'ID');
}

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