| 
					
				 | 
			
			
				@@ -1,6 +1,5 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 package com.kmall.admin.service.impl; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import com.alibaba.fastjson.JSON; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.google.common.collect.ImmutableBiMap; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.google.common.collect.Maps; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.kmall.admin.dao.*; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -923,7 +922,7 @@ public class ProductStoreRelaServiceImpl implements ProductStoreRelaService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 StoreEntity store = storeDao.queryObjectByName(storeGoodsDto.getStoreName().trim()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 storeRelaEntity.setExitRegionNumber(storeGoodsDto.getExitRegionNumber()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 storeRelaEntity.setStoreId(store.getId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                GoodsEntity goodsEntity = goodsDao.queryObjectBySnNew(storeGoodsDto.getGoodsSn()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                GoodsEntity goodsEntity = goodsDao.queryObjectBySnNew(storeGoodsDto.getGoodsSn().trim()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (goodsEntity != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     storeRelaEntity.setGoodsId(goodsEntity.getId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 }else{ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1005,7 +1004,7 @@ public class ProductStoreRelaServiceImpl implements ProductStoreRelaService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (brandId == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 Map<String, String> brandCacheData = new HashMap<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 // 数据库里面查询 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                BrandEntity queryBrand = brandService.queryByUniqueIdentifier(uniqueIdentifier); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                BrandEntity queryBrand = brandService.queryByUniqueIdentifier(uniqueIdentifier.trim()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (queryBrand == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     throw new RuntimeException("该品牌不存在,请检查品牌唯一标识符是否正确:"+uniqueIdentifier); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } else { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1020,7 +1019,7 @@ public class ProductStoreRelaServiceImpl implements ProductStoreRelaService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             Map<String, String> brandCacheData = new HashMap<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // 数据库里面查询 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            BrandEntity queryBrand = brandService.queryByUniqueIdentifier(uniqueIdentifier); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            BrandEntity queryBrand = brandService.queryByUniqueIdentifier(uniqueIdentifier.trim()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (queryBrand == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 throw new RuntimeException("该品牌不存在,请检查品牌唯一标识符是否正确:"+uniqueIdentifier); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } else { 
			 |