public with sharing class lexLookupController {
    @AuraEnabled
    public static List<Object> getRecordsByName(String objectName, String searchFor,String queryBrand) {
        String queryString = 'SELECT Id, Name FROM ';
        //deloitte-zhj 23201210 012C600000003JhIAI
            queryString += String.escapeSingleQuotes(objectName) + ' WHERE Name Like \'%' + String.escapeSingleQuotes(searchFor) + '%\' and Category5__c = \'竞争对手\' and Brand_Name__c != \'奥林巴斯\' and RecordTypeId = \''+System.label.Pro_RecordType+'\' and Brand_Name__c = \'' + queryBrand + '\' and IsActive = true limit 10';
            System.debug('queryString = ' + queryString);
            return Database.query(queryString); //niwu -Pro_RecordType =012C600000003JhIAI
    }
}