public without sharing class LexWithOutSharingSQLDao {
    public static List<Contact> searchContactServiceResult(String searchStr,String accountId) {
        system.debug('SOQL:'+searchStr);
        return Database.query(searchStr);
    }

    public static List<Contact> searchVisitorUniContact(List<String> idList) {
        return [Select id, name, Account.Name, Type__c, Doctor_Division1__c, MyDr_Flg__c, MyDr__c, phone, Supplement__c, Select_Flg__c, Please_Delete__c, Please_Delete_applier__c, FirstName, LastName, Search_LastName__c, Account_Visitor_Search__c,AWS_Data_Id__c,UnifiedI_Contact_ID__c,MobilePhone  From Contact where id in :idList]; //deloitte-zhj 20231031 加字段MobilePhone
    }

    public static List<Contact> searchVisitorScwl(String searchSql, Set<String> awsContactSet) {
        return Database.query(searchSql);
    }

    public static Contact searchContactById(String responsibleContactId) {
        return [select id,AWS_Data_Id__c from Contact where id=:responsibleContactId]; 
    }
}