/** * * ODescription: GAuthor: sun xia @Date: 2023-07-11 15:31:56 GIastEditors: sun xia @IastEditTime: 2023-07-11 15:31:56 * */ public with sharing class LexAllReceivedFseController { @AuraEnabled public static InitData init(String recordId){ InitData res = new InitData(); try{ List raList = [SELECT Id, Loaner_received_ng_num__c from Rental_Apply__c where Id = :recordId]; if(raList.size()>0){ Rental_Apply__c ra = raList[0]; res.id = ra.Id; res.loanerReceivedNgNum = Integer.valueOf(ra.Loaner_received_ng_num__c); } }catch(Exception e){ System.debug(LoggingLevel.INFO, '****e:' + e); } return res; } @AuraEnabled public static String getRaeSet(String recordId){ List raeList = [SELECT Id, RAES_Status__c, Loaner_received_time__c from Rental_Apply_Equipment_Set__c WHERE Rental_Apply__c = :recordId]; List updateList = new List(); for(Integer i=0; i0){ try { Update updateList; return 'SUCCESS'; } catch (Exception e) { return e.getMessage(); } } return '不存在更新明细'; } public Class InitData{ @AuraEnabled public String id; @AuraEnabled public Integer loanerReceivedNgNum; } }