From 0593d044698afa73e7e58022dab190ead1925f3a Mon Sep 17 00:00:00 2001
From: 沙世明 <shashiming@prec-tech.com>
Date: 星期六, 12 三月 2022 18:12:55 +0800
Subject: [PATCH] Merge branch 'master' of http://47.92.229.245:8089/r/OlyMEBG

---
 force-app/main/default/classes/CM_SearchContactServiceController.cls |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/force-app/main/default/classes/CM_SearchContactServiceController.cls b/force-app/main/default/classes/CM_SearchContactServiceController.cls
index cd53c9a..405631b 100644
--- a/force-app/main/default/classes/CM_SearchContactServiceController.cls
+++ b/force-app/main/default/classes/CM_SearchContactServiceController.cls
@@ -23,7 +23,7 @@
         List<Contact> conList = new List<Contact>();
         system.debug('Account Id from Front-end:'+accountId);
         if(String.isNotBlank(accountId) && String.isNotEmpty(accountId)){
-            conList = new List<Contact>([select Id,AWS_Data_Id__c from Contact where AccountId=:accountId and AWS_Data_Id__c!='']);
+            conList = new List<Contact>([select Id,AWS_Data_Id__c from Contact where AccountId=:accountId and AWS_Data_Id__c!='' limit 500]);
         }        
         //2. Prepare the Contact Info
         Map<String,Contact> awsIdToContactMap = new Map<String,Contact>();
@@ -90,6 +90,8 @@
 
         system.debug('=====searchStr:' + searchStr);
 
+        searchStr += 'limit 500';
+
         List<Contact> searchResult = Database.query(searchStr);
 
         lineInfoList = new List<LineInfo>();

--
Gitblit v1.9.1