From b2129bfa771b52e6e4058bc24bf42a4acebe0f16 Mon Sep 17 00:00:00 2001 From: marina Date: Wed, 23 Oct 2024 17:00:53 +0300 Subject: [PATCH] =?utf8?q?ERP-150=20=D0=9F=D1=80=D0=B8=D1=81=D0=B2=D0=BE?= =?utf8?q?=D0=B8=D1=82=D1=8C=20=D0=BA=D0=B0=D0=B6=D0=B4=D0=BE=D0=BC=D1=83?= =?utf8?q?=20=D0=BC=D0=B0=D0=B3=D0=B0=D0=B7=D0=B8=D0=BD=D1=83=20ID=20?= =?utf8?q?=D1=81=D0=BA=D0=BB=D0=B0=D0=B4=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/records/CityStore.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/erp24/records/CityStore.php b/erp24/records/CityStore.php index 34bdb099..36e1d3f8 100755 --- a/erp24/records/CityStore.php +++ b/erp24/records/CityStore.php @@ -265,6 +265,22 @@ class CityStore extends ActiveRecord return $result; } + + public static function getAllActiveGuidId() + { + $result = []; + + $values = self::find()->joinWith('storeGuid') + ->orderBy([self::tableName() . '.id' => SORT_ASC])->asArray() + ->all(); + + if (!empty($values)) { + $result = ArrayHelper::map($values, 'id', 'storeGuid.export_val'); + } + + return $result; + } + public static function getCityStoreById(int $id, $withGuid = false): array { $query = self::find(); -- 2.39.5