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