Model/ResourceModel/Catalog.php
public function setImportedByIds($ids)
    {
        try {
            $coreResource = $this->getConnection();
            $tableName = $this->getTable(Schema::EMAIL_CATALOG_TABLE);

            $coreResource->update(
                $tableName,
                [
                    'modified' => new \Zend_Db_Expr('null'),
                    'imported' => '1',
                    'updated_at' => gmdate('Y-m-d H:i:s'),
                ],
                ["product_id IN (?)" => $ids]
            );
        } catch (\Exception $e) {
            $this->helper->debug((string)$e, []);
        }
    }
public function setImportedByIds($ids)
    {
        try {
            $coreResource = $this->getConnection();
            $tableName = $this->getTable(Schema::EMAIL_CATALOG_TABLE);

            $coreResource->update(
                $tableName,
                [
                    'modified' => new \Zend_Db_Expr('null'),
                    'imported' => '1',
                    'updated_at' => gmdate('Y-m-d H:i:s'),
                ],
                ["product_id IN (?)" => $ids]
            );
        } catch (\Exception $e) {
            $this->helper->debug((string)$e, []);
        }
    }
public function setImportedByIds ( $ ids ) { try { $ coreResource = $ this -> getConnection ( ) ; $ tableName = $ this -> getTable ( Schema :: EMAIL_CATALOG_TABLE ) ; $ coreResource -> update ( $ tableName , [ 'modified' => new \ Zend_Db_Expr ( 'null' ) , 'imported' => '1' , 'updated_at' => gmdate ( 'Y-m-d H:i:s' ) , ] , [ "product_id IN (?)" => $ ids ] ) ; } catch ( \ Exception $ e ) { $ this -> helper -> debug ( ( string ) $ e , [ ] ) ; } }
Set imported and modified in bulk query.

@param array $ids

@return null
Set imported and modified in bulk query .