From abed484babfdae0957f67c4c2c2307e4fe6a6a38 Mon Sep 17 00:00:00 2001
From: 19626 <1962676589@qq.com>
Date: 星期二, 04 四月 2023 16:39:55 +0800
Subject: [PATCH] 处理review 4.4.3

---
 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