From f029f265aff61fb8d52f25a40ab44b33fbf63025 Mon Sep 17 00:00:00 2001 From: fomichev Date: Mon, 7 Apr 2025 12:41:56 +0300 Subject: [PATCH] =?utf8?q?=D0=92=D0=BE=D0=B7=D0=B2=D1=80=D0=B0=D1=89=D0=B0?= =?utf8?q?=D0=B5=D0=BC=20=D1=82=D0=BE=D1=87=D0=BD=D0=BE=D0=B5=20=D0=B2?= =?utf8?q?=D1=85=D0=BE=D0=B6=D0=B4=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BF=D0=BE?= =?utf8?q?=20=D0=B4=D0=BE=D0=BF=20=D1=85=D0=B0=D1=80=D0=B0=D0=BA=D1=82?= =?utf8?q?=D0=B5=D1=80=D0=B8=D1=81=D1=82=D0=B8=D0=BA=D0=B0=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/services/StorePlanService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erp24/services/StorePlanService.php b/erp24/services/StorePlanService.php index b1c6e09e..58c56ce4 100755 --- a/erp24/services/StorePlanService.php +++ b/erp24/services/StorePlanService.php @@ -376,8 +376,8 @@ class StorePlanService ->where(new \yii\db\Expression('(property_id, value) IN (' . implode(', ', array_map(function($pair) { return "('" . implode("','", $pair) . "')"; }, $conditions)) . ')')) - ->groupBy('product_id'); - // ->having('COUNT(*) = :cnt', [':cnt' => $countChars]); + ->groupBy('product_id') + ->having('COUNT(*) = :cnt', [':cnt' => $countChars]); $similarProductIds = $query->column(); // var_dump($similarProductIds); die(); -- 2.39.5