From 5658927d15c7d3d5b896ea5ed62f25bf377846e3 Mon Sep 17 00:00:00 2001
From: zhangchunxu <1842059105@qq.com>
Date: 星期五, 04 八月 2023 15:40:54 +0800
Subject: [PATCH] 修改  客户人员 “新建意向”

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

diff --git a/force-app/main/default/classes/NewLeadFromContact2.cls b/force-app/main/default/classes/NewLeadFromContact2.cls
index 63f5460..e6deeab 100644
--- a/force-app/main/default/classes/NewLeadFromContact2.cls
+++ b/force-app/main/default/classes/NewLeadFromContact2.cls
@@ -1,12 +1,13 @@
-public with sharing class NewLeadFromContact2 {
+public without sharing class NewLeadFromContact2 {
     @AuraEnabled
     public static InitData NewLeadFromContact2(String recordId) {
         InitData res = new initData();
         try{
-            Contact report= [SELECT Id,Name,AccountId FROM Contact WHERE Id = :recordId LIMIT 1];
+            Contact report= [SELECT Id,Name,AccountId,AWS_Data_Id__c FROM Contact WHERE Id = :recordId LIMIT 1];
             res.Id = report.Id;
             res.Name = report.Name;
             res.AccountId = report.AccountId;
+            res.AWSDataId = report.AWS_Data_Id__c;
             Account acc =  [SELECT Id,Name,Department_Class__c  FROM Account WHERE id =: report.AccountId]; 
             res.accountIds = acc.Id;
             res.accountName = acc.Name;
@@ -33,5 +34,7 @@
         public String accountDepartmentClass;
         @AuraEnabled
         public String NewDailyReport;
+        @AuraEnabled
+        public String AWSDataId;
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1