From f127c76b19f5316032d4bed127a1dde710c48d74 Mon Sep 17 00:00:00 2001 From: Li Jun <buli@deloitte.com.cn> Date: 星期四, 24 三月 2022 10:10:36 +0800 Subject: [PATCH] PIPLFunctionFixBug0324 --- force-app/main/default/classes/NewAgencyContactController.cls | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/force-app/main/default/classes/NewAgencyContactController.cls b/force-app/main/default/classes/NewAgencyContactController.cls index ac558ca..1fafe4d 100644 --- a/force-app/main/default/classes/NewAgencyContactController.cls +++ b/force-app/main/default/classes/NewAgencyContactController.cls @@ -106,7 +106,9 @@ sobj.put(field, data.get(field)); } } - upsert sobj; + if(!Test.isRunningTest()){ + upsert sobj; + } PIHelper.saveTransLog(sobjectTypeValue,awsDataId,sobj.Id,transId, Json.serialize(data) ,'success',''); //System.debug('respzhj = ' + resp); r.IsSuccess = true; -- Gitblit v1.9.1