From: fomichev Date: Fri, 27 Dec 2024 07:10:59 +0000 (+0300) Subject: Правки оптимизации звонка X-Git-Tag: 1.7~94^2~18 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=f9b8aad1e868ecae5cfd5dadce49fa233a7fb2f9;p=erp24_rep%2Fyii-erp24%2F.git Правки оптимизации звонка --- diff --git a/erp24/records/Users.php b/erp24/records/Users.php index fc5f1264..0f33263c 100755 --- a/erp24/records/Users.php +++ b/erp24/records/Users.php @@ -558,6 +558,7 @@ class Users extends \yii\db\ActiveRecord $excludeSalesPhone = Sales::find() ->where(['>=', 'date', date('Y-m-d', strtotime("$startDate -$step2 days"))]) ->andWhere(['<=', 'date', date('Y-m-d', strtotime("$startDate -$step3 days"))]) + ->andWhere(['phone' => $whatsappPhones]) ->distinct('phone') ->select('phone') ->column();