| | |
| | | * @Author: chen jing wu |
| | | * @Date: 2023-04-12 11:16:07 |
| | | * @LastEditors: chen jing wu |
| | | * @LastEditTime: 2023-06-25 13:10:39 |
| | | * @LastEditTime: 2023-06-29 16:53:17 |
| | | */ |
| | | public with sharing class OpportunityLightingButtonController { |
| | | @AuraEnabled |
| | |
| | | return res; |
| | | } |
| | | @AuraEnabled |
| | | public static InitData initForNewOpportunityFileButton(String recordId){ |
| | | InitData res = new InitData(); |
| | | try { |
| | | Opportunity opp = [ |
| | | select |
| | | Stock_apply_status__c |
| | | from Opportunity where Id =: recordId |
| | | ]; |
| | | res.stockApplyStatus = opp.Stock_apply_status__c; |
| | | } catch (Exception e) { |
| | | throw new AuraHandledException(e.getMessage()); |
| | | } |
| | | return res; |
| | | } |
| | | @AuraEnabled |
| | | public static string updateForAgencyAuthorizeButton(String recordId){ |
| | | try { |
| | | Opportunity opp = new Opportunity(); |