]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Исправления
authorfomichev <vladimir.fomichev@erp-flowers.ru>
Mon, 20 Jan 2025 20:48:11 +0000 (23:48 +0300)
committerfomichev <vladimir.fomichev@erp-flowers.ru>
Mon, 20 Jan 2025 20:48:11 +0000 (23:48 +0300)
erp24/commands/CronController.php

index 1b9badbf418e2de7ff17f0114d3fe9d431dd7ac1..151a73c9dc24be543d30a874540f7ba55975b031 100644 (file)
@@ -270,9 +270,9 @@ class CronController extends Controller
                 BaseConsole::FG_GREEN
             );
             $sentStatusKogort = SentKogort::find()
-                ->select('phones')
+                ->select('phone')
                 ->where(['kogort_date' => $kogortDate])
-                ->andWhere(['target' => $targetDate])
+                ->andWhere(['target_date' => $targetDate])
                 ->andWhere(['status' => 2])
                 ->column();
 
@@ -465,9 +465,9 @@ class CronController extends Controller
 
                 if ($i == 0) {
                     $sentStatusKogort = SentKogort::find()
-                        ->select('phones')
+                        ->select('phone')
                         ->where(['kogort_date' => $kogortDate])
-                        ->andWhere(['target' => $targetDate])
+                        ->andWhere(['target_date' => $targetDate])
                         ->andWhere(['status' => 3])
                         ->column();
                     // Выбираем номера для отправки через бота