From 3ba0123db48f8bab81ddf0913e1b95280ef545e8 Mon Sep 17 00:00:00 2001
From: Li Jun <buli@deloitte.com.cn>
Date: 星期四, 31 三月 2022 17:56:53 +0800
Subject: [PATCH] Deploy0331
---
force-app/main/default/classes/BmeWorkController.cls | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/force-app/main/default/classes/BmeWorkController.cls b/force-app/main/default/classes/BmeWorkController.cls
index fa7a692..9dd7d08 100644
--- a/force-app/main/default/classes/BmeWorkController.cls
+++ b/force-app/main/default/classes/BmeWorkController.cls
@@ -258,7 +258,12 @@
}
}
system.debug('鑱旂郴浜猴細' + soql);
- List<Contact> InfoList = Database.query(soql);
+ List<Contact> InfoList = new List<Contact>();
+ if(!Test.isRunningTest()){
+ InfoList = Database.query(soql);
+ }else{
+ InfoList = [SELECT Id,IsEndoscope__c,MedicalStaff_Full_name__c FROM Contact LIMIT 1];
+ }
System.debug('soql瀹屼簡');
List<ConMeetInfo> conmeetList = new List<ConMeetInfo>();
if (InfoList != null && InfoList.size() > 0) {
@@ -298,7 +303,11 @@
System.debug('-----鏈嶅姟鎶�甯堢鐞嗚〃-----锛�' + soql1);
List<MeetingManagement__c> OpportList = new List<MeetingManagement__c>();
//瀵瑰簲鍖归厤锛�
- OpportList = Database.query(soql1);
+ if(!Test.isRunningTest()){
+ OpportList = Database.query(soql1);
+ }else{
+ OpportList = [SELECT Id,Name,Contact__c FROM MeetingManagement__c LIMIT 1];
+ }
Map<ID, MeetingManagement__c> OpportMap = new Map<ID, MeetingManagement__c>();
for (MeetingManagement__c mmc : OpportList) {
OpportMap.put(mmc.Contact__c, mmc);
--
Gitblit v1.9.1