| 
					
				 | 
			
			
				@@ -18,6 +18,7 @@ import cn.newfeifan.mall.module.product.service.sku.ProductSkuService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import cn.newfeifan.mall.module.system.controller.admin.user.vo.user.UserShopDetailsVO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import cn.newfeifan.mall.module.system.service.user.AdminUserService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.google.common.collect.Maps; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import io.swagger.v3.oas.annotations.media.Schema; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import lombok.extern.slf4j.Slf4j; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.context.annotation.Lazy; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.stereotype.Service; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -107,10 +108,19 @@ public class ProductSpuServiceImpl implements ProductSpuService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ProductSpuDO updateObj = BeanUtils.toBean(updateReqVO, ProductSpuDO.class); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         initSpuFromSkus(updateObj, skuSaveReqList); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //最大推广费, 单位: 分  add by Ben 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Integer maxPromotionFee = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         for (ProductSkuSaveReqVO productSkuSaveReqVO : skuSaveReqList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             productSkuSaveReqVO.setShopId(updateReqVO.getShopId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             productSkuSaveReqVO.setMerchantId(updateReqVO.getMerchantId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            Integer skuPromotionFee = productSkuSaveReqVO.getPromotionFee(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if(skuPromotionFee>maxPromotionFee) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                maxPromotionFee=skuPromotionFee; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        updateObj.setPromotionFee(maxPromotionFee); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         productSpuMapper.updateById(updateObj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // 批量更新 SKU 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         productSkuService.updateSkuList(updateObj.getId(), updateReqVO.getSkus()); 
			 |