123
chenjingwu
2024-04-26 84cff51bab8955e8c6f4b5bb113100cdf4101cce
force-app/main/default/classes/MaintenanceUpdateProductHandler.cls
@@ -157,7 +157,8 @@
                Product2 product2 = new Product2();
                // chenjingwu 3+2多年保修 20240226 start
                MultiYearWarranty__c mu = new MultiYearWarranty__c();
                if(mpdDetails.MultiYearWarranty__c != '' && mpdDetails.MultiYearWarranty__c != null){
                System.debug('chen=>' + mpdDetails);
                if(String.isNotBlank(mpdDetails.MultiYearWarranty__c)){
                    muIdList.add(mpdDetails.MultiYearWarranty__c);
                }
                // chenjingwu 3+2多年保修 20240226 end
@@ -458,11 +459,12 @@
                    mu.AmountWithheld__c = mpdDetails.AmountWithheld__c;
                    mu.ProductName__c = mpdDetails.ProductsID__c;
                    muUPdate.add(mu);
                }else{
                    //跟新标识
                    product2.IsFromSAP__c = true;
                    product2Update.add(product2);
                }
                // chenjingwu 3+2多年保修 20240226 end
                //跟新标识
                product2.IsFromSAP__c = true;
                product2Update.add(product2);
            }
            // chenjingwu 3+2多年保修 20240226 start
            if(muUPdate.size()>0 && muUPdate !=null ){