From d77b6353ca9b59a6398df3eae9912f9fd766946d Mon Sep 17 00:00:00 2001
From: zhangzhengmei <zhangzhengmei@prec-tech.com>
Date: 星期六, 05 八月 2023 17:04:22 +0800
Subject: [PATCH] fix: lightning 页面确认
---
force-app/main/default/classes/buttonCampaignCtl.cls | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/force-app/main/default/classes/buttonCampaignCtl.cls b/force-app/main/default/classes/buttonCampaignCtl.cls
new file mode 100644
index 0000000..4003b17
--- /dev/null
+++ b/force-app/main/default/classes/buttonCampaignCtl.cls
@@ -0,0 +1,28 @@
+public with sharing class buttonCampaignCtl {
+ public buttonCampaignCtl() {
+
+ }
+
+ @AuraEnabled
+ public static InitData init(String recordId){
+ InitData res = new initData();
+ try{
+ Campaign report = [SELECT Id,Status FROM Campaign WHERE Id =: recordId LIMIT 1];
+ System.debug(LoggingLevel.INFO, '*** opp: ' + report);
+ res.Id = report.Id;
+ res.Status = report.Status;
+
+ System.debug(LoggingLevel.INFO, '*** res: ' + res);
+ }catch(Exception e){
+ System.debug(LoggingLevel.INFO, '*** e: ' + e);
+ }
+ return res;
+ }
+
+ public class InitData{
+ @AuraEnabled
+ public String Id;
+ @AuraEnabled
+ public String Status;
+ }
+}
\ No newline at end of file
--
Gitblit v1.9.1