public with sharing class lexLookupController {
    @AuraEnabled
    public static List<Object> getRecordsByName(String objectName, String searchFor,String queryBrand) {
        String queryString = 'SELECT Id, Name FROM ';
            queryString += String.escapeSingleQuotes(objectName) + ' WHERE Name Like \'%' + String.escapeSingleQuotes(searchFor) + '%\' and Category5__c = \'竞争对手\' and Brand_Name__c != \'奥林巴斯\' and RecordTypeId = \'01210000000aMAEAA2\' and Brand_Name__c = \'' + queryBrand + '\' limit 10';
        return Database.query(queryString);
    }
}