| 
					
				 | 
			
			
				@@ -45,7 +45,7 @@ public class UserController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			@ApiImplicitParam(name = "createStartDate", value = "开始注册时间", required = true, dataType = "String"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			@ApiImplicitParam(name = "createEndDate", value = "结束注册时间", required = true, dataType = "String") }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	@GetMapping("/queryPage") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	public Object queryPage(@RequestBody SysUserQueryInfo queryInfo) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	public Object queryPage(SysUserQueryInfo queryInfo) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		return succeed(sysUserService.queryPage(queryInfo)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -66,7 +66,7 @@ public class UserController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	@ApiOperation(value = "新增用户") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	@PostMapping("/add") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	public Object add(@RequestBody SysUser sysUser) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	public Object add(SysUser sysUser) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 //		sysUser.setPassword(new BCryptPasswordEncoder().encode(sysUser.getPassword())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		sysUserService.insert(sysUser); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		return succeed(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -77,10 +77,7 @@ public class UserController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	@ApiImplicitParams({ @ApiImplicitParam(name = "mobile", value = "手机号", required = true, dataType = "String"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			@ApiImplicitParam(name = "authCode", value = "验证码", required = true, dataType = "String"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			@ApiImplicitParam(name = "password", value = "密码", required = true, dataType = "String") }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	public Object setPassword(@RequestBody HashMap<String,String> param) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		String mobile = param.get("mobile"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		String authCode = param.get("authCode"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		String password = param.get("password"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	public Object setPassword(String mobile,String authCode,String password) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		if(StringUtils.isEmpty(mobile) || StringUtils.isEmpty(authCode) || StringUtils.isEmpty(password)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			return failed(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		} 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -103,11 +100,7 @@ public class UserController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			@ApiImplicitParam(name = "authCode", value = "验证码", required = true, dataType = "String"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			@ApiImplicitParam(name = "newPassword", value = "新密码", required = true, dataType = "String"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			@ApiImplicitParam(name = "password", value = "旧密码", required = true, dataType = "String") }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	public Object updatePassword(@RequestBody HashMap<String,String> param) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		String mobile = param.get("mobile"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		String authCode = param.get("authCode"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		String password = param.get("password"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		String newPassword = param.get("newPassword"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	public Object updatePassword(String mobile,String authCode,String password,String newPassword) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		if(StringUtils.isEmpty(mobile) || StringUtils.isEmpty(authCode) || StringUtils.isEmpty(password) || StringUtils.isEmpty(newPassword)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			return failed("参数校验异常"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		} 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -139,7 +132,7 @@ public class UserController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	}*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	@ApiOperation(value = "修改用户") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	@PutMapping("/update") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	@PostMapping("/update") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	public Object update(SysUser sysUser) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		AuthUser user = SecurityUtils.getUser(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		if(user != null){ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -166,10 +159,8 @@ public class UserController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	@ApiImplicitParams({ @ApiImplicitParam(name = "userId", value = "用户编号", required = true, dataType = "Integer"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			@ApiImplicitParam(name = "roleIds", value = "角色id,逗号分隔", required = true, dataType = "String") }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	@PostMapping("/addRole") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	public Object getRole(@RequestBody HashMap<String,String> param) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		String userId = param.get("userId"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		String roleIds = param.get("roleIds"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		if(StringUtils.isEmpty(param.get("userId")) || StringUtils.isEmpty(param.get("roleIds"))){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	public Object getRole(String userId,String roleIds) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		if(StringUtils.isEmpty(userId) || StringUtils.isEmpty(roleIds)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			return failed(SecurityConstants.PARAM_VERIFY_EXCEPTION); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		sysUserRoleService.batchInsert(Integer.parseInt(userId),roleIds); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -179,11 +170,9 @@ public class UserController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	@ApiOperation(value = "用户角色删除") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	@ApiImplicitParams({ @ApiImplicitParam(name = "userId", value = "用户编号", required = true, dataType = "Integer"), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			@ApiImplicitParam(name = "roleIds", value = "角色id,逗号分隔", required = true, dataType = "String") }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	@DeleteMapping("/delRole") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	public Object delRole(@RequestBody HashMap<String,String> param) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		String userId = param.get("userId"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		String roleIds = param.get("roleIds"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		if(StringUtils.isEmpty(param.get("userId")) || StringUtils.isEmpty(param.get("roleIds"))){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	@PostMapping("/delRole") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	public Object delRole(String userId,String roleIds) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		if(StringUtils.isEmpty(userId) || StringUtils.isEmpty(roleIds)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			return failed(SecurityConstants.PARAM_VERIFY_EXCEPTION); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		sysUserRoleService.batchDel(Integer.parseInt(userId),roleIds); 
			 |