PendingCountable::applyFilter

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. PendingCountable
  4. applyFilter
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/counter/counterquerybuilder/deadlinebased/datefilters/pendingcountable.php
  • Класс: Bitrix\Crm\Counter\CounterQueryBuilder\DeadlineBased\DateFilters\PendingCountable
  • Вызов: PendingCountable::applyFilter
public function applyFilter(ConditionTree $ct, QueryParams $params): void
{
	$lowBound = $this->deadlineBounds->getLowBound($params);
	$highBound = $this->deadlineBounds->getHighBound($params);

	$sqlHelper = Application::getConnection()->getSqlHelper();

	if ($lowBound)
	{
		$ct->where('ref.ACTIVITY_DEADLINE', '>=', new SqlExpression($sqlHelper->convertToDbDateTime($lowBound)));
	}
	if ($highBound)
	{
		$ct->where('ref.ACTIVITY_DEADLINE', '<=', new SqlExpression($sqlHelper->convertToDbDateTime($highBound)));
	}
}

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