diff --git a/retailcrm/src/Bulders/CustomersBuilder.php b/retailcrm/src/Bulders/CustomersBuilder.php index 8db5597..324d52e 100644 --- a/retailcrm/src/Bulders/CustomersBuilder.php +++ b/retailcrm/src/Bulders/CustomersBuilder.php @@ -41,11 +41,11 @@ class CustomersBuilder extends Builder */ public function buildCustomersById($uidString) { + $uids = DataHelper::explodeUids($uidString); $query = $this->rule->getSQL('customers_uid'); $handler = $this->rule->getHandler('CustomersHandler'); $this->sql = $this->container->db->prepare($query); $this->sql->bindParam(':orderIds', $uids); - $uids = DataHelper::explodeUids($uidString); return $this->build($handler); } @@ -74,11 +74,11 @@ class CustomersBuilder extends Builder */ public function buildCustomersUpdateById($uidString) { + $uids = DataHelper::explodeUids($uidString); $query = $this->rule->getSQL('customers_update_uid'); $handler = $this->rule->getHandler('CustomersHandler'); $this->sql = $this->container->db->prepare($query); $this->sql->bindParam(':orderIds', $uids); - $uids = DataHelper::explodeUids($uidString); return $this->build($handler); }