|  | @@ -332,19 +332,19 @@ public class GoodsServiceImpl implements GoodsService {
 | 
	
		
			
				|  |  |                          productStoreRela.setMarketPrice(goods.getMarketPrice());
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                      productStoreRelaDao.update(productStoreRela);
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | -                if(!productStoreRela.getMerchSn().equalsIgnoreCase(goods.getMerchSn())
 | 
	
		
			
				|  |  | -                        && goods.getIsOnSale() == Integer.parseInt(Dict.isOnSale.item_0.getItem())) {
 | 
	
		
			
				|  |  | -                    if (goods.getRetailPrice() != null) {
 | 
	
		
			
				|  |  | -                        productStoreRela.setRetailPrice(goods.getRetailPrice());
 | 
	
		
			
				|  |  | -                    }
 | 
	
		
			
				|  |  | -                    if (goods.getMarketPrice() != null) {
 | 
	
		
			
				|  |  | -                        productStoreRela.setMarketPrice(goods.getMarketPrice());
 | 
	
		
			
				|  |  | +                }else {
 | 
	
		
			
				|  |  | +                    if (goods.getIsOnSale() == Integer.parseInt(Dict.isOnSale.item_0.getItem())) {
 | 
	
		
			
				|  |  | +                        if (goods.getRetailPrice() != null) {
 | 
	
		
			
				|  |  | +                            productStoreRela.setRetailPrice(goods.getRetailPrice());
 | 
	
		
			
				|  |  | +                        }
 | 
	
		
			
				|  |  | +                        if (goods.getMarketPrice() != null) {
 | 
	
		
			
				|  |  | +                            productStoreRela.setMarketPrice(goods.getMarketPrice());
 | 
	
		
			
				|  |  | +                        }
 | 
	
		
			
				|  |  | +                        productStoreRela.setMerchSn("");
 | 
	
		
			
				|  |  | +                        productStoreRelaDao.update(productStoreRela);
 | 
	
		
			
				|  |  | +                    } else {
 | 
	
		
			
				|  |  | +                        throw new RRException("商品编码为【" + goods.getGoodsSn() + "】的商品已上架在商户编号为【" + productStoreRela.getMerchSn() + "】的门店中,可先将该商品下架后再进行修改!");
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  | -                    productStoreRela.setMerchSn("");
 | 
	
		
			
				|  |  | -                    productStoreRelaDao.update(productStoreRela);
 | 
	
		
			
				|  |  | -                }else{
 | 
	
		
			
				|  |  | -                    throw new RRException("商品编码为【"+goods.getGoodsSn()+"】的商品已上架在商户编号为【"+productStoreRela.getMerchSn()+"】的门店中,可先将该商品下架后再进行修改!");
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 |