| 
					
				 | 
			
			
				@@ -783,11 +783,18 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <select id="queryByName" resultType="com.kmall.admin.entity.GoodsEntity"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        select id,name,sku,prod_barcode 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        from mall_goods 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        where 1=1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        SELECT DISTINCT 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            g.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            g.NAME, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            g.sku, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            g.prod_barcode 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        FROM 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            mall_product_store_rela r 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        LEFT JOIN mall_goods g ON g.id = r.goods_id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        WHERE 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            r.store_id = #{storeId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <if test="goodsName != null and goodsName != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            and name like concat('%',#{goodsName},'%'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            AND g.NAME LIKE concat('%',#{goodsName},'%'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <select id="queryNonSyncOmsHsCodeSkuList" resultType="java.lang.String"> 
			 |