DeadlineBounds::applyFilerToField

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

	$sqlHelper = Application::getConnection()->getSqlHelper();
	$ct->where($fieldName, '>=', new SqlExpression($sqlHelper->convertToDbDateTime($lowBound)));
	$ct->where($fieldName, '<=', new SqlExpression($sqlHelper->convertToDbDateTime($highBound)));
}

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