public with sharing class buttonQISSCReportCtl {
    public buttonQISSCReportCtl() {

    }

    @AuraEnabled
    public static InitData init(String recordId){
        InitData res = new initData();
        try{
            QIS_SC_Report__c report =  [SELECT Status__c,Id FROM QIS_SC_Report__c WHERE Id =: recordId LIMIT 1];
            System.debug(LoggingLevel.INFO, '*** opp: ' + report);
            res.Id = report.Id;
            res.StatusC = report.Status__c;

            System.debug(LoggingLevel.INFO, '*** res: ' + res);
        }catch(Exception e){
            System.debug(LoggingLevel.INFO, '*** e: ' + e);
        }
        return res;
    }   

    // 根据ID修改QIS市场部
    @AuraEnabled
    public static void updateQISSCReport(String Id){
        try {
            QIS_SC_Report__c qis_Sc = new QIS_SC_Report__c();
            qis_Sc.Id = Id;
            qis_Sc.Status__c = '已提交';
            update qis_Sc;
        } catch (Exception e) {
            System.debug(LoggingLevel.INFO, '*** e: ' + e);
        }
    }

    public class InitData{
        @AuraEnabled
        public String Id;
        @AuraEnabled
        public String StatusC;
     }
}