| | |
| | | public Map<String,List<MultiYearWarranty__c>> muMap { get; set; } |
| | | public Map<String,Integer> muCountMap {get; set; } |
| | | public Map<String,List<ExMpdDetailsInfo>> exmpdDetailsRecordsMap { get; set; } |
| | | public Map<String,List<ExMpdDetailsInfo>> exmpdDetailsRecordsViewMap { get; set; } |
| | | // chenjingwu 3+2多年保修 end |
| | | |
| | | /*****************画面表示Bean******************/ |
| | |
| | | } |
| | | // chenjingwu 3+2多年保修 20240417 end |
| | | // chenjingwu 3+2多年保修 20240417 start |
| | | exmpdDetailsRecordsMap = new Map<String,List<ExMpdDetailsInfo>>(); |
| | | exmpdDetailsRecordsMap = new Map<String,List<ExMpdDetailsInfo>>(); |
| | | exmpdDetailsRecordsViewMap = new Map<String,List<ExMpdDetailsInfo>>(); |
| | | muCountMap = new Map<String,Integer>(); |
| | | List<Maintenance_Product_Data_Details__c> exDetailList = [select Id,MultiYearWarranty__c,MultiYearWarranty__r.AgeLimit__c,MultiYearWarranty__r.MultiOneYearWarrantyPrice__c,MultiYearWarranty__r.AmountWithheld__c,AgeLimit__c,AgeLimit_Old__c,MultiOneYearWarrantyPrice__c,MultiOneYearWarrantyPrice_Old__c,AmountWithheld__c,AmountWithheld_Old__c,ProductsID__c,ProductsID__r.Name from Maintenance_Product_Data_Details__c where ProductsID__c in:idList and RecordTypeId = '012C50000000jefIAA']; |
| | | for(String id: idList){ |
| | | List<ExMpdDetailsInfo> exList = new List<ExMpdDetailsInfo>(); |
| | | List<ExMpdDetailsInfo> exViewList = new List<ExMpdDetailsInfo>(); |
| | | for(Maintenance_Product_Data_Details__c mpdd: exDetailList){ |
| | | if(id == mpdd.ProductsID__c){ |
| | | exList.add(new ExMpdDetailsInfo(mpdd)); |
| | | exViewList.add(new ExMpdDetailsInfo(mpdd)); |
| | | } |
| | | } |
| | | if(exList.size() <= 0){ |
| | | exViewList.add(new ExMpdDetailsInfo()); |
| | | } |
| | | exList.add(new ExMpdDetailsInfo()); |
| | | muCountMap.put(id,exList.size()); |
| | | exmpdDetailsRecordsMap.put(id,exList); |
| | | exmpdDetailsRecordsViewMap.put(id,exViewList); |
| | | } |
| | | System.debug('chenjingwu=>' + idList); |
| | | System.debug('chenjingwu=>' + muCountMap); |