LighterQueriesCommon::queryActivityIdsToLightCounters

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. LighterQueriesCommon
  4. queryActivityIdsToLightCounters
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/counter/lighter/lighterqueriescommon.php
  • Класс: Bitrix\Crm\Counter\Lighter\LighterQueriesCommon
  • Вызов: LighterQueriesCommon::queryActivityIdsToLightCounters
public function queryActivityIdsToLightCounters(): array
{
	$lightTimeQuery = ActCounterLightTimeTable::query()
		->addSelect('ACTIVITY_ID')
		->where('LIGHT_COUNTER_AT', '<=', new DateTime())
		->where('IS_LIGHT_COUNTER_NOTIFIED', '=', 'N')
		->addOrder('LIGHT_COUNTER_AT', 'DESC')
		->setLimit(100);

	return array_column($lightTimeQuery->fetchAll(), 'ACTIVITY_ID');
}

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