| | |
| | | public with sharing class AllReceivedFseController { |
| | | public AllReceivedFseController() { |
| | | |
| | | } |
| | | |
| | | @AuraEnabled |
| | | public static InitData init(String recordId){ |
| | | InitData res = new InitData(); |
| | | Rental_Apply__c ra = [SELECT Id, Loaner_received_ng_num__c from Rental_Apply__c where Id = :recordId]; |
| | | res.Id = ra.Id; |
| | | res.LoanerReceivedNgNum = Integer.valueOf(ra.Loaner_received_ng_num__c); |
| | | res.id = ra.Id; |
| | | res.loanerReceivedNgNum = Integer.valueOf(ra.Loaner_received_ng_num__c); |
| | | |
| | | return res; |
| | | } |
| | |
| | | |
| | | if(updateList.size()>0){ |
| | | try { |
| | | update updateList; |
| | | Update updateList; |
| | | return 'SUCCESS'; |
| | | } |
| | | catch (Exception e) { |
| | |
| | | |
| | | public Class InitData{ |
| | | @AuraEnabled |
| | | public String Id; |
| | | public String id; |
| | | @AuraEnabled |
| | | public Integer LoanerReceivedNgNum; |
| | | public Integer loanerReceivedNgNum; |
| | | } |
| | | } |