//create by tcm 20211220 先款后修 提交待审批获取领导 暂时不用,作废 public without sharing class Advance_PaymentHandler extends Oly_TriggerHandler { public static void selectCreater(List newList, Map oldMap){ User user=[select id,JingliApprovalManager__c,BuchangApprovalManager__c,ZongjianApprovalManager__c from user where Id = : UserInfo.getUserId()]; for (Advance_Payment__c ap : newList) { if (ap.Status__c=='已提交') { ap.Business_Director_ccadre__c=user.JingliApprovalManager__c; ap.Service_Department__c=user.BuchangApprovalManager__c; ap.Business_Director__c=user.ZongjianApprovalManager__c; } } } }