1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * Author:     Zhang,Heyang
 * Created Date: 06/27/2023
 * Purpose: Check the status during replication
 * Test Class: LexRepairCloneButtonControllerTest
 *
 * */
public with sharing class LexRepairCloneButtonController {
    public LexRepairCloneButtonController() {
 
    }
    @AuraEnabled
    public static Boolean checkStatus(String recordId){
        Repair__c rc = [SELECT Id,Status__c FROM Repair__c WHERE id =: recordId LIMIT 1];
        if(rc.Status__c == '0.删除' || rc.Status__c == '0.取消'){
            return true;
        }
        return false;
    }
}