From: fomichev Date: Mon, 7 Apr 2025 09:29:27 +0000 (+0300) Subject: Убрал точное вхождение X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=df9b60e570ac4ee79a8187c781808dbaac39dd33;p=erp24_rep%2Fyii-erp24%2F.git Убрал точное вхождение --- diff --git a/erp24/services/StorePlanService.php b/erp24/services/StorePlanService.php index 58c56ce4..b1c6e09e 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();