|  |  |  | 
|---|
|  |  |  | String firstNameStr = String.isNotBlank(contact.FirstName) ? contact.FirstName:''; | 
|---|
|  |  |  | String contactFullName = lastNameStr + firstNameStr; | 
|---|
|  |  |  | contactFullName = contact.LastName_Encrypted__c;// 20220314 PI改造 by Bright | 
|---|
|  |  |  | if(string.isBlank(contactFullName)){ | 
|---|
|  |  |  | continue; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | String accountId = String.valueOf(contact.AccountId).SubString(0,15); | 
|---|
|  |  |  | Map<String,Contact> contactFullNameMap = new  Map<String,Contact>(); | 
|---|
|  |  |  | if (accountContactMap.containsKey(accountId)) { | 
|---|
|  |  |  | 
|---|
|  |  |  | if(!System.Test.isRunningTest()){ | 
|---|
|  |  |  | // NFM606Controller.executeNotFuture('', contactIdList); | 
|---|
|  |  |  | if (contactIdList.size() > 0) { | 
|---|
|  |  |  | NFM606Controller.callout('', contactIdList); | 
|---|
|  |  |  | // NFM606Controller.callout('', contactIdList); | 
|---|
|  |  |  | //添加future 判断 add for pipl  sushanhu 20220317 start | 
|---|
|  |  |  | if (!(System.isFuture()||System.isBatch())) { | 
|---|
|  |  |  | NFM606Controller.callout('', contactIdList); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //添加future 判断 add for pipl  sushanhu 20220317 end | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (interfaceUserUpsertContact.size() > 0) { | 
|---|
|  |  |  | NFM606Controller.executeNotFuture('', interfaceUserUpsertContact); | 
|---|
|  |  |  | // NFM606Controller.executeNotFuture('', interfaceUserUpsertContact); | 
|---|
|  |  |  | //添加future 判断 add for pipl  sushanhu 20220316 start | 
|---|
|  |  |  | if (!(System.isFuture()||System.isBatch())) { | 
|---|
|  |  |  | NFM606Controller.executeNotFuture('', interfaceUserUpsertContact); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //添加future 判断 add for pipl  sushanhu 20220316 end | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|