From af908216bb0012fe849e3b49b3039c7ba238f8f0 Mon Sep 17 00:00:00 2001
From: liangxiaozhen <liangxiaozhen>
Date: 星期五, 11 八月 2023 14:35:43 +0800
Subject: [PATCH] 补充controller,修改变量,主页bug修改

---
 force-app/main/default/classes/CustomLink2AdvancePaymentController.cls |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/force-app/main/default/classes/CustomLink2AdvancePaymentController.cls b/force-app/main/default/classes/CustomLink2AdvancePaymentController.cls
index d299005..db440ac 100644
--- a/force-app/main/default/classes/CustomLink2AdvancePaymentController.cls
+++ b/force-app/main/default/classes/CustomLink2AdvancePaymentController.cls
@@ -3,12 +3,12 @@
     public static InitData init(String recordId) {
         InitData res  = new initData();
         try {
-            Account report = [SELECT Id,Name,FirstParagraph__c,MonthlyPayment__c FROM Account WHERE Id = :recordId];
-            res.RecordTypeId = Schema.SObjectType.Advance_Payment__c.getRecordTypeInfosByDeveloperName().get('FirstParagraphChange').getRecordTypeId();
-            res.Name = report.Name;
-            res.FirstParagraph = report.FirstParagraph__c;
-            res.MonthlyPayment = report.MonthlyPayment__c;
-            List<Advance_Payment__c> records = [SELECT id,Status__c FROM Advance_Payment__c WHERE Account__c =:recordId and RecordType.Id = :res.RecordTypeId and Status__c in ('鑽夋涓�','宸叉彁浜�','鎵瑰噯涓�')];
+            Account report = [SELECT Id,name,FirstParagraph__c,MonthlyPayment__c FROM Account WHERE Id = :recordId];
+            res.recordTypeId = Schema.SObjectType.Advance_Payment__c.getRecordTypeInfosByDeveloperName().get('FirstParagraphChange').getRecordTypeId();
+            res.name = report.name;
+            res.firstParagraph = report.FirstParagraph__c;
+            res.monthlyPayment = report.MonthlyPayment__c;
+            List<Advance_Payment__c> records = [SELECT id,Status__c FROM Advance_Payment__c WHERE Account__c =:recordId and RecordType.Id = :res.recordTypeId and Status__c in ('鑽夋涓�','宸叉彁浜�','鎵瑰噯涓�')];
             res.records = records;
         } catch (Exception e) {
             throw new AuraHandledException(e.getMessage());
@@ -17,14 +17,14 @@
     }
     public class InitData{
         @AuraEnabled
-        public String Name;
+        public String name;
         @AuraEnabled
-        public Boolean FirstParagraph;
+        public Boolean firstParagraph;
         @AuraEnabled
-        public Boolean MonthlyPayment;
+        public Boolean monthlyPayment;
         @AuraEnabled
         public List<Advance_Payment__c> records;
         @AuraEnabled
-        public String RecordTypeId;
+        public String recordTypeId;
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1