From 07390e2fcb4adf27c928335bf27ae7939c5a80ad Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期二, 23 五月 2023 11:28:12 +0800
Subject: [PATCH] bakcup20230523

---
 force-app/main/default/classes/MonthlyReportController.cls |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/force-app/main/default/classes/MonthlyReportController.cls b/force-app/main/default/classes/MonthlyReportController.cls
index 1448292..9b43a8e 100644
--- a/force-app/main/default/classes/MonthlyReportController.cls
+++ b/force-app/main/default/classes/MonthlyReportController.cls
@@ -5,7 +5,8 @@
         InitData res = new initData();
         try{
             Monthly_Report__c report = [SELECT 	OwnerId,Id,Next_week_plan__c FROM Monthly_Report__c WHERE Id = :recordId LIMIT 1];
-            res.OwnerId = report.OwnerId;
+            res.ownerId = report.OwnerId;
+            res.userId = UserInfo.getUserId();
             res.Id = report.Id;
             res.nextWeekPlan = report.Next_week_plan__c;
             System.debug(LoggingLevel.INFO, '*** res: ' + res);
@@ -27,8 +28,7 @@
             Feedback__c,
             Task_follow__c,
             Other_issue__c,
-            Next_week_plan__c,
-            Dr_Sum_URL__c
+            Next_week_plan__c
             FROM Monthly_Report__c WHERE Id = :recordId LIMIT 1];
             String userName = UserInfo.getUserName();
             User activeUser = [Select Email From User where Username = : userName limit 1];
@@ -40,9 +40,7 @@
             res.taskFollow = report.Task_follow__c;
             res.otherIssue = report.Other_issue__c;
             res.nextWeekPlan = report.Next_week_plan__c;
-            res.drSumUrl = report.Dr_Sum_URL__c;
             res.userEmail = activeUser.Email;
-            
             System.debug(LoggingLevel.INFO, '*** res: ' + res);
         }catch(Exception e){
             System.debug(LoggingLevel.INFO, '*** e: ' + e);
@@ -73,7 +71,7 @@
         @AuraEnabled
         public String Id;
         @AuraEnabled
-        public String OwnerId;
+        public String ownerId;
         @AuraEnabled
         public String ownerEmail;
         @AuraEnabled
@@ -92,5 +90,7 @@
         public String drSumUrl;
         @AuraEnabled
         public String userEmail;
+        @AuraEnabled
+        public String userId;
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1