李金换
2022-03-28 9b197b7fac92278fb591ea8f4942c7d5687cb5ce
force-app/main/default/classes/RentalApplyTriggerHandler.cls
@@ -695,7 +695,16 @@
        }
        //拷贝医院的市字段
        Map<Id, Account> accMap = new Map<Id, Account>();
        // Set<Id> hpIdSetCopy = new Set<Id>();
        // Integer count = 0;
        if (hpIdSet.size() > 0) {
        //    for (Id a : hpIdSet) {
        //        hpIdSetCopy.add(a);
        //        count++;
        //        if (count>=99) {
        //           break;
        //        }
        //    }
            accMap.putAll([SELECT Id, City_Master__r.Name, State_Text__c FROM Account WHERE Id IN: hpIdSet]);
            for (Rental_Apply__c nObj : newList) {
                if (accMap.containsKey(nObj.Hospital__c)) {