|  |  | @ -12,6 +12,7 @@ import com.glxp.api.common.enums.ResultEnum; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.common.res.BaseResponse; |  |  |  | import com.glxp.api.common.res.BaseResponse; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.common.util.ResultVOUtils; |  |  |  | import com.glxp.api.common.util.ResultVOUtils; | 
			
		
	
		
		
			
				
					
					|  |  |  | import com.glxp.api.service.auth.*; |  |  |  | import com.glxp.api.service.auth.*; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | import com.glxp.api.util.StringUtils; | 
			
		
	
		
		
			
				
					
					|  |  |  | import org.springframework.beans.BeanUtils; |  |  |  | import org.springframework.beans.BeanUtils; | 
			
		
	
		
		
			
				
					
					|  |  |  | import org.springframework.validation.BindingResult; |  |  |  | import org.springframework.validation.BindingResult; | 
			
		
	
		
		
			
				
					
					|  |  |  | import org.springframework.web.bind.annotation.*; |  |  |  | import org.springframework.web.bind.annotation.*; | 
			
		
	
	
		
		
			
				
					|  |  | @ -139,6 +140,12 @@ public class AuthUserController extends BaseController { | 
			
		
	
		
		
			
				
					
					|  |  |  |     public BaseResponse updateUser(@RequestBody UpdateUserRequset updateUserRequset) { |  |  |  |     public BaseResponse updateUser(@RequestBody UpdateUserRequset updateUserRequset) { | 
			
		
	
		
		
			
				
					
					|  |  |  |         AuthAdmin authAdmin=customerService.getUserBean(); |  |  |  |         AuthAdmin authAdmin=customerService.getUserBean(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         System.out.println(updateUserRequset.toString()); |  |  |  |         System.out.println(updateUserRequset.toString()); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if (StringUtils.isBlank(updateUserRequset.getNewPassword())){ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             return ResultVOUtils.error(500,"请输入新密码!"); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if (StringUtils.isBlank(updateUserRequset.getConfirmPassword())){ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             return ResultVOUtils.error(500,"请输入确认密码!"); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (!updateUserRequset.getPassWord().equals(authAdmin.getPassWord())){ |  |  |  |         if (!updateUserRequset.getPassWord().equals(authAdmin.getPassWord())){ | 
			
		
	
		
		
			
				
					
					|  |  |  |             return ResultVOUtils.error(500,"当前密码输入错误!请重新输入!"); |  |  |  |             return ResultVOUtils.error(500,"当前密码输入错误!请重新输入!"); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
	
		
		
			
				
					|  |  | 
 |