/*
|
* 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;
|
}
|
}
|