PendingUncompleted::applyFilter

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

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

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

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