| | |
| | | } |
| | | protected override void beforeUpdate() { |
| | | changeAssume(); |
| | | SetAwaitToSendAWS();//new |
| | | //SetAwaitToSendAWS();//new |
| | | } |
| | | //new |
| | | protected override void beforeInsert() { |
| | | SetAwaitToSendAWS();//new |
| | | } |
| | | |
| | | |
| | | protected override void afterInsert() { |
| | | createAgencyTarget(); |
| | | //SetAwaitToSendAWS();//old |
| | | SetAwaitToSendAWS(); |
| | | |
| | | } |
| | | |
| | |
| | | // LHJ KWAG-BQMA89 202006 Start |
| | | updateAgencyAccout(); |
| | | // LHJ KWAG-BQMA89 202006 End |
| | | //SetAwaitToSendAWS();//old |
| | | SetAwaitToSendAWS();//old |
| | | } |
| | | |
| | | |
| | |
| | | if (!NFM601_IdMap.containsKey(acc.Id)) { |
| | | // 判断是否是接口用户 |
| | | if(UserInfo.getUserId().equals(System.Label.interfaceUserID)){ |
| | | //此处做修改,NFM624Rest接收数据后触发trigger,trigger再去调用601存在bug,修改为增加标记,使用Batch发送 |
| | | //interfaceUserUpsertAccount.add(acc.Id); |
| | | //2022-3-28 pk start |
| | | acc.NFM601Tag__c = true; |
| | | //2022-3-28 pk end |
| | | interfaceUserUpsertAccount.add(acc.Id); |
| | | } else { |
| | | queueableAccountIdList.add(acc.Id); |
| | | } |
| | |
| | | || acc.Phone != old.Phone //电话 |
| | | || acc.Postal_Code__c != old.Postal_Code__c //邮编 |
| | | || acc.Address__c != old.Address__c //地址 |
| | | //LLIU-CGRCGK LY 20220728 start |
| | | || (developerId == '01210000000QemGAAS' && //医院 |
| | | (acc.OCM_Category__c != old.OCM_Category__c //OCSM分类(医院) |
| | | || acc.Grade__c != old.Grade__c ) )//政府等级 |
| | | //LLIU-CGRCGK LY 20220728 end |
| | | || (developerId == '01210000000Qem1AAC' && //经销商 |
| | | (acc.Business_Paper_Expiration_Date__c != old.Business_Paper_Expiration_Date__c || //营业执照有效期限 |
| | | acc.Tax_Practice_Expiration_Date__c != old.Tax_Practice_Expiration_Date__c || //税务登记证有效期限 |
| | |
| | | ) { |
| | | if (!NFM601_IdMap.containsKey(acc.Id)) { |
| | | if(UserInfo.getUserId().equals(System.Label.interfaceUserID)){ |
| | | //interfaceUserUpsertAccount.add(acc.Id); |
| | | //2022-3-28 pk start |
| | | acc.NFM601tag__c = true; |
| | | //2022-3-28 pk start |
| | | interfaceUserUpsertAccount.add(acc.Id); |
| | | } else { |
| | | queueableAccountIdList.add(acc.Id); |
| | | } |
| | | NFM601_IdMap.put(acc.Id, acc.Id); |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | |
| | | //After : to avoid mutiple execute |
| | | //if(!(System.Test.isRunningTest()||System.isFuture()||System.isBatch())){ |
| | | //Update by Li Jun for PIPL 20220304 |
| | | if(!(System.Test.isRunningTest()||System.isFuture()||System.isBatch())){ |
| | | if(!(System.Test.isRunningTest())){ |
| | | |
| | | if (queueableAccountIdList.size() > 0) { |
| | | NFM601Controller.callout('', queueableAccountIdList); |
| | | } |
| | | // if (interfaceUserUpsertAccount.size() > 0) { |
| | | // NFM601Controller.executefuture('', interfaceUserUpsertAccount); |
| | | // } |
| | | if (interfaceUserUpsertAccount.size() > 0) { |
| | | NFM601Controller.executefuture('', interfaceUserUpsertAccount); |
| | | } |
| | | } |
| | | |
| | | } |