From 1b214a96d371ce90578fb7d6c14eecfcba5f87f0 Mon Sep 17 00:00:00 2001
From: 涂煌豪 <tuhuanghao@prec-tech.com>
Date: 星期一, 11 四月 2022 18:52:32 +0800
Subject: [PATCH] Sfdc2PoContactBatch修改

---
 force-app/main/default/classes/Sfdc2PoContactBatch.cls     |    7 +++++--
 force-app/main/default/classes/Sfdc2PoContactBatchTest.cls |    1 +
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/force-app/main/default/classes/Sfdc2PoContactBatch.cls b/force-app/main/default/classes/Sfdc2PoContactBatch.cls
index 0d84fdb..6d971cc 100644
--- a/force-app/main/default/classes/Sfdc2PoContactBatch.cls
+++ b/force-app/main/default/classes/Sfdc2PoContactBatch.cls
@@ -11,15 +11,18 @@
         //     WHERE Id != null AND RecordTypeId = '01210000000QfWiAAK' AND Account.Is_Active_Formula__c = '鏈夋晥' AND MobilePhone != '' AND  Isactive__c = '鏈夋晥'
         // ]);
         // 鍙戦�佹寚瀹氭暟鎹�
+        // 缁忛攢鍟嗗拰鍖婚櫌瀹㈡埛浜哄憳鏁版嵁閮介渶瑕侀噸鏂版墽琛� thh 20220411 start
         return Database.getQueryLocator([SELECT id, Name, IsFromSPO__c, RecordTypeId, UnifiedI_Contact_ID__c, SendToComPlat__c,MobilePhone
             FROM Contact
             WHERE Id != null 
-                AND RecordTypeId = '01210000000QfWiAAK' 
+                AND (RecordTypeId = '01210000000QfWiAAK' OR RecordTypeId = '01210000000QfWdAAK')
                 AND Account.Is_Active_Formula__c = '鏈夋晥' 
                 AND MobilePhone != '' 
                 AND  ((Isactive__c = '鏈夋晥' 
-                AND SendToComPlat__c =true) OR SendToComPlat__c = true)
+                AND SendToComPlat__c = true) OR SendToComPlat__c = true)
         ]);
+        // 缁忛攢鍟嗗拰鍖婚櫌瀹㈡埛浜哄憳鏁版嵁閮介渶瑕侀噸鏂版墽琛� thh 20220411 start
+
     }
 
     global void execute(Database.BatchableContext BC, list < Contact > senContactList) {
diff --git a/force-app/main/default/classes/Sfdc2PoContactBatchTest.cls b/force-app/main/default/classes/Sfdc2PoContactBatchTest.cls
index e679593..e7c8c67 100644
--- a/force-app/main/default/classes/Sfdc2PoContactBatchTest.cls
+++ b/force-app/main/default/classes/Sfdc2PoContactBatchTest.cls
@@ -2,6 +2,7 @@
 public class Sfdc2PoContactBatchTest {
 	// NFM606ControllerTest.makeTestRepair();
     static testMethod void testMethod1() {
+        Oly_TriggerHandler.bypass('ContactTriggerHandler');
     	List<RecordType> Agency = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and DeveloperName = 'Agency'];
         // 鍒涘缓缁忛攢鍟�
         Account company = new Account();

--
Gitblit v1.9.1