123
chenjingwu
2024-04-19 aae243f790652988c897a9d768ce0cc3dd58e742
force-app/main/default/classes/MaintenanceProductDataController.cls
@@ -52,6 +52,7 @@
    // chenjingwu 3+2多年保修 start
    public List<MultiYearWarranty__c> muList { get; set; }
    public Map<String,List<MultiYearWarranty__c>> muMap { get; set; }
    public Map<String,Integer> muCountMap {get; set; }
    // chenjingwu 3+2多年保修 end
     /*****************画面表示Bean******************/
@@ -869,6 +870,9 @@
                }
                // chenjingwu 3+2多年保修 20240417 start 
                muList = [select Id,AgeLimit__c,MultiOneYearWarrantyPrice__c,AmountWithheld__c,ProductName__c from MultiYearWarranty__c where ProductName__c in: idList order By ProductName__c];
                  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'));
                  }
                for(String id: idList){
                    List<MultiYearWarranty__c> mus = new List<MultiYearWarranty__c>();
                    for(MultiYearWarranty__c mu: muList){