高章伟
2022-02-24 2aa8da8af66aa8ae00f25831aed6bb0364176e7b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//create by tcm 20211220 先款后修 提交待审批获取领导 暂时不用,作废
public without sharing class Advance_PaymentHandler extends Oly_TriggerHandler {
 
    public static void selectCreater(List<Advance_Payment__c> newList, Map<Id,Advance_Payment__c> 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;
            }
        }
    }
}