首页>代码>SSM+MySQL开发java CRM客户关系管理系统>/ShiTou_CRM/src/com/oaec/shitou/controller/LoginController.java
package com.oaec.shitou.controller;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.oaec.shitou.entity.Employee;
import com.oaec.shitou.service.EmployeeService;
import com.oaec.shitou.util.ControllerUtil;
@Controller
@RequestMapping(value="/loginHandle")
public class LoginController {
	
	@Resource
	EmployeeService employeeService;
	
	private Log log = LogFactory.getLog(LoginController.class);
	/**
	 * 根据登录页面的数据判断用户是否登陆成功 ,
	 * 以及要跳转的页面
	 */
	@RequestMapping(value="selectEmployee",method=RequestMethod.POST)
	public String selectEmployee(Employee employee,HttpServletRequest request){
		Employee oneEmployee=null;
		oneEmployee = employeeService.selectEmployee(employee);
		request.getSession().setAttribute("employee", oneEmployee);
		return ControllerUtil.pagePath(oneEmployee);
	}
	

}
最近下载更多
2036495585  LV9 2023年9月25日
wcm2003  LV1 2023年6月3日
lwp011  LV27 2022年9月19日
brucega  LV3 2022年6月1日
yuqi886  LV5 2022年4月16日
大水池  LV2 2022年4月8日
Yee.  LV5 2022年3月13日
刘123456789  LV8 2022年2月24日
wanglinddad  LV54 2022年1月7日
1211366946  LV3 2021年12月27日
最近浏览更多
m5433661  LV2 3月28日
森sdfgf  LV8 3月26日
vluobo  LV1 3月19日
爱丽淇  LV5 3月18日
shenghaer  LV1 2月9日
阿凡达  LV9 1月29日
admin_z  LV22 1月29日
PSSDZH  LV3 1月22日
binlong520 1月11日
暂无贡献等级
晴曛  LV6 2023年12月29日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友