| | |
| | | protected override void beforeUpdate() { |
| | | changeAssume(); |
| | | //SetAwaitToSendAWS();//new |
| | | CustomizePageJudge();//20221121 lt |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | //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 |
| | | } |