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日