| | |
| | | if(String.isNotBlank(infoH.Description)){ |
| | | tempPH.Description__c = infoH.Description; |
| | | //名称 促销政策名称 =方案描述 |
| | | tempPH.name = infoH.Description; |
| | | String tempName = infoH.Description; |
| | | if(tempName.length()>80){ |
| | | tempPH.name = tempName.substring(0, 80); |
| | | }else{ |
| | | tempPH.name = tempName; |
| | | } |
| | | } |
| | | //促销方案具体内容 |
| | | if(String.isNotBlank(infoH.Memo)){ |
| | |
| | | if(String.isNotBlank(infoP.Model)&&infoP.Quantity!=null){ |
| | | tempPP.PromotionHead__c = pHeadMap.get(infoH.SpoID); |
| | | tempPP.Asset_Model_No__c = infoP.Model; |
| | | tempPP.name = infoP.Model; |
| | | String tempName = infoP.Model; |
| | | if(tempName.length()>80){ |
| | | tempPP.name = tempName.substring(0, 80); |
| | | }else{ |
| | | tempPP.name = tempName; |
| | | } |
| | | //数量 |
| | | tempPP.Quantity__c = infoP.Quantity; |
| | | return tempPP; |