/**
	 * 登陆
	 * 
	 * @author zhangxuewei
	 * @return
	 */
	@RequestMapping(value = "/userLogin", method = RequestMethod.POST)
	@ResponseBody
	public String userLogin(HttpServletRequest request, HttpSession session) {
		logger.info("userLogin ...........");
		String userName = request.getParameter("username");
		String password = request.getParameter("password");
		if (!StringUtils.isBlank(userName) && !StringUtils.isBlank(password)) {
			String pwd = AIAppUtils.encrypt(password);
			EntityWrapper<User> ew = new EntityWrapper<>();
			ew.eq("user_name", userName);
			ew.eq("pass_word", pwd);
			ew.eq("status", AIAppConstants.STATUS);
			User user = userService.selectOne(ew);
			if (null == user) {
				// return "redirect:/login";
				return "Error";
			}
			
			session.setAttribute("sessionUser", user);
		}
		return "OK";
		// return "redirect:/index";

	}