public with sharing class LexEventCancelController { public LexEventCancelController() { } @AuraEnabled public static Event init(String recordId){ try{ Event res=[SELECT Id,EventC_ID__c,Task_ID__c,StartDateTime,EventStatus__c from Event where id= :recordId]; if(res.Task_ID__c==null)res.Task_ID__c=''; if(res.EventStatus__c==null)res.EventStatus__c=''; if(res.EventC_ID__c==null)res.EventC_ID__c=''; return res; }catch(Exception e){ System.debug(LoggingLevel.INFO,'LexEventCancelController Error : ' + e); } return null; } @AuraEnabled public static Task__c getTaskC(String recordId) { if(String.isBlank(recordId))return null; try{ Task__c res=[SELECT id,taskStatus__c,taskDifferent__c FROM Task__c where id = :recordId]; return res; }catch(Exception e){ System.debug(LoggingLevel.INFO,'Rental_Apply__c Cancel Error : ' + e); } return null; } @AuraEnabled public static List getTaskC1(String recordId) { try{ List res=[select id from task__c where id = :recordId and taskStatus__c = '03 完成' ]; return res; }catch(Exception e){ System.debug(LoggingLevel.INFO,'Rental_Apply__c Cancel Error : ' + e); } return null; } }