binxie
2024-01-16 1b08402678deb31bba4a347bfd388eba8360cbc1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * Author:     Zhang,Heyang
 * Created Date: 06/06/2023
 * Purpose: When copying QIS, check whether the current record status allows replication
 * Test Class: LexQISCloneButtonControllerTest
 *
 * */
public with sharing class LexQISCloneButtonController {
    public LexQISCloneButtonController() {
 
    }
    @AuraEnabled
    public static Boolean checkStatus(String recordId){
        QIS_Report__c qis = [SELECT Id,QIS_Status__c FROM QIS_Report__c WHERE id =: recordId LIMIT 1];
        return qis.QIS_Status__c == '取消'? true : false;
    }
}