| | |
| | | for(AggregateResult objAgr: [select ProductName__c,COUNT(Id) total from MultiYearWarranty__c where ProductName__c in:idList group by ProductName__c]){ |
| | | muCountMap.put((String)objAgr.get('ProductName__c'), (Integer)objAgr.get('total')); |
| | | } |
| | | muMap = new Map<String,List<MultiYearWarranty__c>>(); |
| | | for(String id: idList){ |
| | | List<MultiYearWarranty__c> mus = new List<MultiYearWarranty__c>(); |
| | | for(MultiYearWarranty__c mu: muList){ |
| | |
| | | } |
| | | } |
| | | }catch(Exception e){ |
| | | System.debug('chenjingwu==>' + e.getMessage()); |
| | | ApexPages.addMessages(e); |
| | | Database.rollback(sp); |
| | | return null; |