public String dologin() throws Exception {  
	    User user = new User();
	    user.setName(name);
	    user.setPassword(password);
	    
	    dataMap = new HashMap<String, Object>();
	    //拦截逻辑
	    if(name.equals("")){
	    	dataMap.put("status","1003");         //username is null
	    	return ERROR;
	    }else if(password.equals("")){            //password is null
	    	dataMap.put("status","1004");
	    	return ERROR;
	    }
	    User user1 = userService.login(user);  
	    if(user1==null){
	    	dataMap.put("status","1001");          //username is not exist
	    	return ERROR;
	    }else{
	    	if (user1.getUid() != 0) {  
		        return SUCCESS;  
		    }else{
		    	dataMap.put("status", "1002");     //password is error
		    	return ERROR;
		    }	    		
	    }
	    
    }