111
沙世明
2022-11-22 928399eceec50e3d37ea08669a12789a9410a9d2
force-app/main/default/classes/UpdateContractAimAmountHandler.cls
@@ -13,6 +13,7 @@
    protected override void beforeUpdate() {
        changeAssume();
        //SetAwaitToSendAWS();//new
        CustomizePageJudge();//20221121 lt
    }
    
@@ -269,4 +270,25 @@
        }
    }
    //20221121 lt LLIU-CKB5H9【委托】【医院】医院新建申请和变更系统化 start
    public void CustomizePageJudge(){
        for (Account acc : newList){
            System.debug('lt123-----new审批步骤-----'+acc.ApprovalSteps__c);
            System.debug('lt123-----old审批步骤-----'+oldMap.get(acc.Id).ApprovalSteps__c);
            if(acc.ApprovalSteps__c != oldMap.get(acc.Id).ApprovalSteps__c){
                System.debug('lt123-----审批步骤改变-----');
                if(acc.CustomizePageFlg__c == true){
                    System.debug('lt123-----acc.CustomizePageFlg__c-----'+acc.CustomizePageFlg__c);
                    acc.CustomizePageFlg__c = false;
                }else{
                    System.debug('lt123-----else,acc.CustomizePageFlg__c-----'+acc.CustomizePageFlg__c);
                    acc.addError('请使用具体链接进行审批。');
                }
            }
        }
    }
    //20221121 lt LLIU-CKB5H9【委托】【医院】医院新建申请和变更系统化 end
}