19626
2023-06-29 45e4876c811c861adc5744d06b5bba840fae397a
force-app/main/default/classes/OpportunityLightingButtonController.cls
@@ -4,7 +4,7 @@
 * @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
@@ -495,6 +495,21 @@
        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();