From d77b6353ca9b59a6398df3eae9912f9fd766946d Mon Sep 17 00:00:00 2001
From: zhangzhengmei <zhangzhengmei@prec-tech.com>
Date: 星期六, 05 八月 2023 17:04:22 +0800
Subject: [PATCH] fix: lightning 页面确认

---
 force-app/main/default/classes/otherButtonMaintenanceContractCtl.cls |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/force-app/main/default/classes/otherButtonMaintenanceContractCtl.cls b/force-app/main/default/classes/otherButtonMaintenanceContractCtl.cls
index 4c78b64..9cb79a3 100644
--- a/force-app/main/default/classes/otherButtonMaintenanceContractCtl.cls
+++ b/force-app/main/default/classes/otherButtonMaintenanceContractCtl.cls
@@ -31,7 +31,6 @@
             res.Name = report.Name;
             res.ContractQuotationOrNotC = report.Contract_quotation_or_not__c;
             res.PaymentPlanSumFirstC = report.Payment_Plan_Sum_First__c;
-
             System.debug(LoggingLevel.INFO, '*** res: ' + res);
         }catch(Exception e){
             System.debug(LoggingLevel.INFO, '*** e: ' + e);
@@ -56,7 +55,7 @@
     public static List<Maintenance_Contract_Estimate__c> selectMaintenanceContractEstimate(String recordId){
         List<Maintenance_Contract_Estimate__c> res = new List<Maintenance_Contract_Estimate__c>();
         try{
-            res = [SELECT RecordTypeId from Maintenance_Contract_Estimate__c ];
+            res = [SELECT Id  from Maintenance_Contract_Estimate__c where Maintenance_Contract__c=:recordId];
         }catch(Exception e){
             System.debug(LoggingLevel.INFO, '*** e: ' + e);
         }
@@ -109,6 +108,9 @@
        @AuraEnabled
        public String RecordTypeId;   
        @AuraEnabled
-       public Boolean URFContractC;   
+       public Boolean URFContractC;  
+       @AuraEnabled
+       public ID RecordTypeId1; 
+
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1