https://devdocs.magento.com/guides/v2.3/ui_comp_guide/concepts/ui_comp_data_source.html#declaring-the-xml
在你定义的数据提供类里写就行了,getCollection()->->addFieldToFilter('ean', array('neq' => ''))的写法。
[YourNameSpace][YourModule]UiDataProvider[YourComponentName]DataProvider