From f6a201e215d929bda9815e1689907d166a603519 Mon Sep 17 00:00:00 2001
From: 19626 <1962676589@qq.com>
Date: 星期一, 15 五月 2023 15:08:27 +0800
Subject: [PATCH] 5月15日陈京武按钮开发

---
 force-app/main/default/classes/ReportController.cls |   58 +++++++++++++++++++++++++++++-----------------------------
 1 files changed, 29 insertions(+), 29 deletions(-)

diff --git a/force-app/main/default/classes/ReportController.cls b/force-app/main/default/classes/ReportController.cls
index d75f918..9afd242 100644
--- a/force-app/main/default/classes/ReportController.cls
+++ b/force-app/main/default/classes/ReportController.cls
@@ -77,8 +77,8 @@
         try {
             Report__c report = [select Status__c,VOC_Satisfy__c,VOC_Satisfy1__c from Report__c where Id = :recordId];
             res.status = report.Status__c;
-            res.Satisfy = report.VOC_Satisfy__c;
-            res.Satisfy1 = report.VOC_Satisfy1__c;
+            res.satisfy = report.VOC_Satisfy__c;
+            res.satisfy1 = report.VOC_Satisfy1__c;
             System.debug(LoggingLevel.INFO, '*** res: ' + res);
         } catch (Exception e) {
             System.debug(LoggingLevel.INFO, '*** e: ' + e);
@@ -105,8 +105,8 @@
         InitData res = new InitData();
         try {
             Report__c report = [select OCSMAdministrativeReportNumber__c,OCSMAdministrativeReportDate__c,Aware_date__c from Report__c where Id = :recordId];
-            res.OCSMAdministrativeReportDate = report.OCSMAdministrativeReportDate__c;
-            res.OCSMAdministrativeReportNumber = report.OCSMAdministrativeReportNumber__c;
+            res.theOCSMAdministrativeReportDate = report.OCSMAdministrativeReportDate__c;
+            res.theOCSMAdministrativeReportNumber = report.OCSMAdministrativeReportNumber__c;
             res.awareDate = report.Aware_date__c;
         } catch (Exception e) {
             System.debug(LoggingLevel.INFO, '*** e: ' + e);
@@ -134,7 +134,7 @@
         InitData res = new InitData();
         try {
             Report__c report = [select OCSMAdministrativeReportStatus__c,AwareDate__C from Report__c where Id = :recordId];
-            res.OCSMAdministrativeReportStatus = report.OCSMAdministrativeReportStatus__c;
+            res.theOCSMAdministrativeReportStatus = report.OCSMAdministrativeReportStatus__c;
             res.awareDate = report.AwareDate__C;
         } catch (Exception e) {
             System.debug(LoggingLevel.INFO, '*** e: ' + e);
@@ -163,11 +163,11 @@
         try {
             PAE_DecisionRecord__c[] report = [SELECT LastModifiedDate, Id, Name, LastModifiedById,RecordType.DeveloperName FROM PAE_DecisionRecord__c where PAE_Report__c =  :recordId  And RecordType.DeveloperName = :developerName Order by LastModifiedDate desc];
             if (report != null && !report.isEmpty()) {
-                res.LastModifiedDate = report[0].LastModifiedDate;
-                res.Id = report[0].Id;
-                res.Name = report[0].Name;
-                res.LastModifiedById = report[0].LastModifiedById;
-                res.DeveloperName = report[0].RecordType.DeveloperName;
+                res.lastModifiedDate = report[0].LastModifiedDate;
+                res.id = report[0].Id;
+                res.name = report[0].Name;
+                res.lastModifiedById = report[0].LastModifiedById;
+                res.developerName = report[0].RecordType.DeveloperName;
             }
         } catch (Exception e) {
             System.debug(LoggingLevel.INFO, '*** e: ' + e);
@@ -184,11 +184,11 @@
         try {
             PAE_DecisionRecord__c[] report = [SELECT LastModifiedDate, Id, Name, LastModifiedById,RecordType.DeveloperName FROM PAE_DecisionRecord__c where PAE_Report__c =  :recordId  And RecordType.DeveloperName = :recordTypeId Order by LastModifiedDate desc];
             if (report != null && !report.isEmpty()) {
-                res.LastModifiedDate = report[0].LastModifiedDate;
-                res.Id = report[0].Id;
-                res.Name = report[0].Name;
-                res.LastModifiedById = report[0].LastModifiedById;
-                res.DeveloperName = report[0].RecordType.DeveloperName;
+                res.lastModifiedDate = report[0].LastModifiedDate;
+                res.id = report[0].Id;
+                res.name = report[0].Name;
+                res.lastModifiedById = report[0].LastModifiedById;
+                res.developerName = report[0].RecordType.DeveloperName;
             }
         } catch (Exception e) {
             System.debug(LoggingLevel.INFO, '*** e: ' + e);
@@ -379,15 +379,15 @@
     
     //VOC缁撴灉纭鏇存柊鐩稿簲鏁版嵁
     @AuraEnabled
-    public static String updateForVOCConfirmButton(String recordId,String Satisfy,String Satisfy1){
+    public static String updateForVOCConfirmButton(String recordId,String satisfy,String satisfy1){
         try {
             Report__c rac = new Report__c();
             rac.Id = recordId;
-            if (Satisfy == LightingButtonConstant.CN_YES) {
+            if (satisfy == LightingButtonConstant.CN_YES) {
                 rac.Status__c = LightingButtonConstant.STATUS_VOC_CONFIRMED;
-                } else if (Satisfy == LightingButtonConstant.CN_NO) {
+                } else if (satisfy == LightingButtonConstant.CN_NO) {
                 // 瀵惧繙绲愭灉锛堜竴鍥炵洰锛夈伀鍊ゃ仾銇戙倢銇般�佷竴鍥炵洰銇�屽惁銆嶃仺瑕嬨仾銇�
-                if (Satisfy1 != LightingButtonConstant.CN_NO) {
+                if (satisfy1 != LightingButtonConstant.CN_NO) {
                 Report__c[] records = [SELECT Id, VOC_Satisfy__c, VOC_Unsatisfy_Reason__c, VOC_follow_up_result__c, VOC_solution_category__c FROM Report__c WHERE Id = :recordId];
                 rac.VOC_Satisfy__c = null;
                 rac.VOC_Unsatisfy_Reason__c = null;
@@ -579,29 +579,29 @@
         @AuraEnabled
         public String ownerId;
         @AuraEnabled
-        public String Satisfy;
+        public String satisfy;
         @AuraEnabled
-        public String Satisfy1;
+        public String satisfy1;
         @AuraEnabled
         public String profileId;
         @AuraEnabled
-        public String OCSMAdministrativeReportNumber;
+        public String theOCSMAdministrativeReportNumber;
         @AuraEnabled
-        public Date OCSMAdministrativeReportDate;
+        public Date theOCSMAdministrativeReportDate;
         @AuraEnabled
         public Date awareDate;
         @AuraEnabled
-        public String OCSMAdministrativeReportStatus;
+        public String theOCSMAdministrativeReportStatus;
         @AuraEnabled
-        public Datetime LastModifiedDate;
+        public Datetime lastModifiedDate;
         @AuraEnabled
-        public String Id;
+        public String id;
         @AuraEnabled
-        public String Name;
+        public String name;
         @AuraEnabled
-        public String LastModifiedById;
+        public String lastModifiedById;
         @AuraEnabled
-        public String DeveloperName;
+        public String developerName;
         @AuraEnabled
         public String userId;
         @AuraEnabled

--
Gitblit v1.9.1