| | |
| | | } |
| | | } |
| | | exList.add(new ExMpdDetailsInfo()); |
| | | muCountMap.put(id,exList.size()); |
| | | exmpdDetailsRecordsMap.put(id,exList); |
| | | } |
| | | } |
| | | System.debug('chenjingwu=>' + muCountMap); |
| | | System.debug('chenjingwu=>' + exmpdDetailsRecordsMap); |
| | | // chenjingwu 3+2多年保修 20240417 end |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | List<Maintenance_Product_Data_Details__c> exIntList = new List<Maintenance_Product_Data_Details__c>(); |
| | | if(mpdDetailsRecords.size() > 0 && RecordTypeName.equals('GuranteeMain')){ |
| | | if(RecordTypeName.equals('GuranteeMain')){ |
| | | if(exmpdDetailsRecordsMap == null){ |
| | | |
| | | // chenjingwu 3+2多年保修 20240417 start |
| | |
| | | for(List<ExMpdDetailsInfo> li: exmpdDetailsRecordsMap.values()){ |
| | | for(ExMpdDetailsInfo ex: li){ |
| | | Maintenance_Product_Data_Details__c InsAfterDel = new Maintenance_Product_Data_Details__c(); |
| | | InsAfterDel.Maintenance_Product_Data__c = mpd_Name[0].id; |
| | | InsAfterDel.Name = mpd_Name[0].Name + '-'+ str; |
| | | InsAfterDel.AgeLimit__c = ex.mpdrdd.AgeLimit__c; |
| | | InsAfterDel.MultiYearWarranty__c = ex.mpdrdd.MultiYearWarranty__c; |
| | | InsAfterDel.MultiOneYearWarrantyPrice__c = ex.mpdrdd.MultiOneYearWarrantyPrice__c; |