From 928399eceec50e3d37ea08669a12789a9410a9d2 Mon Sep 17 00:00:00 2001
From: 沙世明 <shashiming@prec-tech.com>
Date: 星期二, 22 十一月 2022 16:51:16 +0800
Subject: [PATCH] 111

---
 force-app/main/default/triggers/NFM007.trigger |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/force-app/main/default/triggers/NFM007.trigger b/force-app/main/default/triggers/NFM007.trigger
index 49613d0..e90f597 100644
--- a/force-app/main/default/triggers/NFM007.trigger
+++ b/force-app/main/default/triggers/NFM007.trigger
@@ -295,7 +295,18 @@
         insert iflog;
         iflog = [Select Id, Name from BatchIF_Log__c where Id = :iflog.Id];
         System.debug(Logginglevel.DEBUG, 'NFM007_' + iflog.Name + ' start');                  // callout 銇腑 end 銇甽og銈掑嚭銇椼伨銇�
-        NFM007Controller.callout(iflog.Id, oppIds, purposeOfAdviceMap);
+        
+        // 20220921 ljh SWAG-CG2A7S update start
+        // NFM007Controller.callout(iflog.Id, oppIds, purposeOfAdviceMap);
+        String uid = UserInfo.getUserId();
+        String iUid = System.Label.interfaceUserID;
+        if (uid.substring(0,15) == iUid.substring(0,15)) {
+            NFM007Controller.calloutNotfuture(iflog.Id, oppIds, purposeOfAdviceMap);
+        }else{
+            NFM007Controller.callout(iflog.Id, oppIds, purposeOfAdviceMap);
+        }
+        // 20220921 ljh SWAG-CG2A7S update end
+        
     }
 
     if(System.Test.isRunningTest()){

--
Gitblit v1.9.1