| | |
| | | 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 |
| | |
| | | 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 ){ |