| 
					
				 | 
			
			
				@@ -50,7 +50,7 @@ public class GoodsController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @RequestMapping("/list") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @RequiresPermissions("goods:list") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public R list(@RequestParam Map<String, Object> params) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        ParamUtils.setQueryPowerByRoleType(params, null, "merchSn", "thirdPartyMerchCode"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ParamUtils.setQueryPowerByRoleType(params, "storeKey", "merchSn", "thirdPartyMerchCode"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         String goodsName = (String) params.get("name"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if(org.apache.commons.lang3.StringUtils.isNotEmpty(goodsName)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             try{ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -126,7 +126,7 @@ public class GoodsController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @RequestMapping("/queryAll") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public R queryAll(@RequestParam Map<String, Object> params) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        ParamUtils.setQueryPowerByRoleType(params, null, "merchSn", "thirdPartyMerchCode"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ParamUtils.setQueryPowerByRoleType(params, "storeKey", "merchSn", "thirdPartyMerchCode"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         params.put("isDelete", Integer.parseInt(Dict.isDelete.item_0.getItem())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         params.put("isOnSale", Integer.parseInt(Dict.isOnSale.item_1.getItem())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<GoodsEntity> list = goodsService.queryList(params); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -142,7 +142,7 @@ public class GoodsController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @RequestMapping("/historyList") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public R historyList(@RequestParam Map<String, Object> params) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        ParamUtils.setQueryPowerByRoleType(params, null, "merchSn", "thirdPartyMerchCode"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ParamUtils.setQueryPowerByRoleType(params, "storeKey", "merchSn", "thirdPartyMerchCode"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //查询列表数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         Query query = new Query(params); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -171,7 +171,7 @@ public class GoodsController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @RequestMapping("/queryTotal") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public R queryTotal(@RequestParam Map<String, Object> params) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        ParamUtils.setQueryPowerByRoleType(params, null, "merchSn", "thirdPartyMerchCode"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ParamUtils.setQueryPowerByRoleType(params, "storeKey", "merchSn", "thirdPartyMerchCode"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         params.put("isDelete", 0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         int sum = goodsService.queryTotal(params); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return R.ok().put("goodsSum", sum); 
			 |