| 
					
				 | 
			
			
				@@ -2,9 +2,11 @@ package com.kmall.admin.controller; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.kmall.admin.entity.UserEntity; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.kmall.admin.service.UserService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.kmall.common.entity.SysUserEntity; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.kmall.common.utils.PageUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.kmall.common.utils.Query; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.kmall.common.utils.R; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.kmall.common.utils.ShiroUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.kmall.common.utils.excel.ExcelExport; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.apache.shiro.authz.annotation.RequiresPermissions; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -35,6 +37,15 @@ public class UserController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @RequestMapping("/list") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @RequiresPermissions("user:list") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public R list(@RequestParam Map<String, Object> params) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        SysUserEntity user = ShiroUtils.getUserEntity(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        //判断当前用户是店员还是商户 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if ("2".equals(user.getRoleType())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            params.put("storeId", user.getStoreId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }else if ("3".equals(user.getRoleType())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            params.put("merchSn", user.getMerchSn()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //查询列表数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         Query query = new Query(params); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |