From 347da127ad0e5cbe95f5a1aa2782412bc056355c Mon Sep 17 00:00:00 2001
From: zz <1842059105@qq.com>
Date: 星期五, 31 三月 2023 17:13:26 +0800
Subject: [PATCH] 提交授权申请提交和取消提交按钮(更新至2023.3.29)

---
 force-app/main/default/classes/ApplicationButtonController.cls |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/force-app/main/default/classes/ApplicationButtonController.cls b/force-app/main/default/classes/ApplicationButtonController.cls
index bb3b998..4dadb0d 100644
--- a/force-app/main/default/classes/ApplicationButtonController.cls
+++ b/force-app/main/default/classes/ApplicationButtonController.cls
@@ -54,12 +54,39 @@
        }
     }
 
+    //鑾峰彇褰撳墠鐧诲綍浜虹殑 id
+    @AuraEnabled
+    public static UserResult UserInfo_Owner() {
+        UserResult result = new UserResult();
+        ID myUserID = UserInfo.getUserId();
+        
+        try { 
+            User tempUser =
+                [select id from user where id = : myUserID ];
+            result.id = tempUser.id;
+        } catch (exception e) {
+            
+            result.result = e.getMessage();
+        }
+        return result;
+    }
+    
     public class InitData{
         @AuraEnabled
         public String Id;
         @AuraEnabled
         public String OwnerId;
     }
+    public class UserResult {
+        @AuraEnabled
+        public string result;
+        public UserResult( ) {
+            result = 'Success';
+        }
+        @AuraEnabled
+        public string id;
+        //20210105 CHAN-BWX3YU you end
+    }
 }
 
     // if("{!Request_tedner_doc__c.OwnerId}" == "{!$User.Id}") {

--
Gitblit v1.9.1