| | |
| | | /** |
| | | * @description : |
| | | * @author : ChangeMeIn@UserSettingsUnder.SFDoc |
| | | * @group : |
| | | * @last modified on : 04-21-2022 |
| | | * @last modified by : ChangeMeIn@UserSettingsUnder.SFDoc |
| | | **/ |
| | | public without sharing class loanerAppTriggerHandler { |
| | | /** |
| | | * [changeFollowOpp description] 跟进询价改变时修改跟进询价(文本) |
| | | * Date 2020/8/20 |
| | | */ |
| | | public static void changeFollowOpp(List<loaner_application__c> newList, Map<Id, loaner_application__c> newMap, List<loaner_application__c> oldList, Map<Id, loaner_application__c> oldMap){ |
| | | //List<loaner_application__c> upList = new List<loaner_application__c>(); |
| | | // List<loaner_application__c> upList = new List<loaner_application__c>(); |
| | | // newList = [select id,Equipment_Type__c,Follow_Opp__c,Follow_Opp_text__c from loaner_application__c where id = 'a0Q0K00000JO2FfUAL']; |
| | | List<String> idList = new List<String>(); |
| | | System.debug('newList'+newList); |
| | | for(loaner_application__c la : newList){ |
| | | loaner_application__c oldla = oldMap.get(la.Id); |
| | | if(la.Equipment_Type__c == 'BS' && la.Follow_Opp__c != oldla.Follow_Opp__c && la.Follow_Opp__c != null){ |
| | |
| | | } |
| | | |
| | | public static void transferBack(List<loaner_application__c> newList, Map<Id, loaner_application__c> newMap, List<loaner_application__c> oldList, Map<Id, loaner_application__c> oldMap){ |
| | | System.debug('newList' + newList); |
| | | System.debug('oldList' + oldList); |
| | | List<String> idList = new List<String>(); |
| | | for(loaner_application__c la : newList){ |
| | | loaner_application__c old = oldMap.get(la.Id); |