資源簡介
使用springMvc+mybatis實(shí)現(xiàn)的需求管理系統(tǒng),主要分為用戶管理和需求管理兩個大部分。用戶管理分為部門管理,角色管理和職員管理;需求管理分為個人信息和需求管理;權(quán)限設(shè)定,ui設(shè)計(jì)等,是入門學(xué)習(xí)springMvc最好的項(xiàng)目,全項(xiàng)目采用注解,達(dá)到0配置的要求,供大家分享學(xué)習(xí),提出寶貴的意見。

代碼片段和文件信息
package?com.live800.controller;
import?java.util.ArrayList;
import?java.util.HashMap;
import?java.util.List;
import?java.util.Map;
import?javax.servlet.http.HttpServletRequest;
import?javax.servlet.http.HttpSession;
import?org.springframework.beans.factory.annotation.Autowired;
import?org.springframework.stereotype.Controller;
import?org.springframework.web.bind.annotation.RequestMapping;
import?org.springframework.web.bind.annotation.RequestMethod;
import?org.springframework.web.servlet.ModelAndView;
import?com.live800.pojo.Approval;
import?com.live800.pojo.Damand;
import?com.live800.service.ApprovalService;
import?com.live800.service.DamandService;
import?com.live800.utils.DateUtil;
@Controller
public?class?ApprovalController?{
private?Damand?damand?;
private?List?damands;
private?Approval?approval;
private?List?approvals;
@Autowired
private?DamandService?damandService;
@Autowired
private?ApprovalService?approvalService;
private?int?damid;
private?int?aid;
private?int?currentPage?=1;
private?int?pageSize;
private?int?maxPage;
private?List?pages;
@Autowired
private?HttpSession?session;
/**
?*?
?*?@return顯示待審批的需求信息
?*/
@RequestMapping(“/findAllDamandOfNeed.do“)
public?ModelAndView?findAllDamandOfNeed(HttpServletRequest?request){
if(request.getParameter(“currentPage“)!=null&&!““.equals(request.getParameter(“currentPage“))){
currentPage?=?Integer.parseInt(request.getParameter(“currentPage“));
}
damands?=?damandService.findAllDamandOfNeed(currentPage8);
maxPage?=?damandService.getDamandMaxPage();
pages?=?new?ArrayList();
for(int?i=1;i<=maxPage;i++){
pages.add(i);
}
Mapject>?map?=?new?HashMapject>();
map.put(“damands“?damands);
map.put(“maxPage“?maxPage);
map.put(“currentPage“?currentPage);
map.put(“pages“?pages);
return?new?ModelAndView(“l(fā)eaderapproval/damandInfo_need“?“map“?map);
}
/**
?*?
?*?@return顯示已審批的需求信息
?*/
@RequestMapping(“/findAllDamandOfFinish.do“)
public?ModelAndView?findAllDamandOfFinish(HttpServletRequest?request){
if(request.getParameter(“currentPage“)!=null&&!““.equals(request.getParameter(“currentPage“))){
currentPage?=?Integer.parseInt(request.getParameter(“currentPage“));
}
damands?=?damandService.findAllDamandOfFinish(currentPage8);
maxPage?=?damandService.getFinishDamandMaxPage();
pages?=?new?ArrayList();
for(int?i=1;i<=maxPage;i++){
pages.add(i);
}
Mapject>?map?=?new?HashMapject>();
map.put(“damands“?damands);
map.put(“maxPage“?maxPage);
map.put(“currentPage“?currentPage);
map.put(“pages“?pages);
return?new?ModelAndView(“l(fā)eaderapproval/damandInfo_finish“?“map“?map);
}
/**
?*?
?*?@return顯示詳細(xì)的未審核需求信息
?*/
@RequestMapping(“/DetailOfDamand.do“)
public?ModelAndView?DetailOfDamand(HttpServletRequest?request){
damid?=?Integer.parseInt(
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2015-03-20?09:48??需求管理系統(tǒng)\
?????目錄???????????0??2015-03-20?09:47??需求管理系統(tǒng)\DemandSystem\
?????文件?????????849??2013-08-30?10:54??需求管理系統(tǒng)\DemandSystem\.classpath
?????文件????????1261??2013-08-22?10:10??需求管理系統(tǒng)\DemandSystem\.project
?????目錄???????????0??2015-03-20?09:47??需求管理系統(tǒng)\DemandSystem\.settings\
?????文件?????????454??2013-08-21?13:35??需求管理系統(tǒng)\DemandSystem\.settings\.jsdtscope
?????文件?????????238??2013-08-30?08:57??需求管理系統(tǒng)\DemandSystem\.settings\org.eclipse.core.resources.prefs
?????文件?????????629??2013-08-22?10:37??需求管理系統(tǒng)\DemandSystem\.settings\org.eclipse.jdt.core.prefs
?????文件?????????466??2013-08-21?13:35??需求管理系統(tǒng)\DemandSystem\.settings\org.eclipse.wst.common.component
?????文件?????????320??2013-08-21?13:35??需求管理系統(tǒng)\DemandSystem\.settings\org.eclipse.wst.common.project.facet.core.xm
?????文件??????????49??2013-08-21?13:35??需求管理系統(tǒng)\DemandSystem\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件???????????6??2013-08-21?13:35??需求管理系統(tǒng)\DemandSystem\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????文件?????????299??2013-08-22?10:37??需求管理系統(tǒng)\DemandSystem\.settings\org.eclipse.wst.validation.prefs
?????目錄???????????0??2015-03-20?09:47??需求管理系統(tǒng)\DemandSystem\WebContent\
?????目錄???????????0??2015-03-20?09:47??需求管理系統(tǒng)\DemandSystem\WebContent\me
?????文件??????????36??2013-08-21?13:36??需求管理系統(tǒng)\DemandSystem\WebContent\me
?????目錄???????????0??2015-03-20?09:47??需求管理系統(tǒng)\DemandSystem\WebContent\WEB-INF\
?????文件????????1366??2013-08-22?11:15??需求管理系統(tǒng)\DemandSystem\WebContent\WEB-INF\admin.jsp
?????目錄???????????0??2015-03-20?09:50??需求管理系統(tǒng)\DemandSystem\WebContent\WEB-INF\classes\
?????目錄???????????0??2015-03-20?09:47??需求管理系統(tǒng)\DemandSystem\WebContent\WEB-INF\config\
?????文件????????4316??2013-08-30?14:47??需求管理系統(tǒng)\DemandSystem\WebContent\WEB-INF\config\application-common.xm
?????文件????????1427??2013-08-30?14:13??需求管理系統(tǒng)\DemandSystem\WebContent\WEB-INF\config\spring-servlet.xm
?????目錄???????????0??2015-03-20?09:47??需求管理系統(tǒng)\DemandSystem\WebContent\WEB-INF\damandmanage\
?????文件????????4676??2013-08-27?10:31??需求管理系統(tǒng)\DemandSystem\WebContent\WEB-INF\damandmanage\damandInfo_add.jsp
?????文件????????5689??2013-08-28?16:41??需求管理系統(tǒng)\DemandSystem\WebContent\WEB-INF\damandmanage\damandInfo_all.jsp
?????文件????????5631??2013-08-27?17:31??需求管理系統(tǒng)\DemandSystem\WebContent\WEB-INF\damandmanage\damandInfo_edit.jsp
?????文件????????5893??2013-08-27?16:29??需求管理系統(tǒng)\DemandSystem\WebContent\WEB-INF\damandmanage\damandInfo_mine.jsp
?????文件????????3112??2013-08-28?14:53??需求管理系統(tǒng)\DemandSystem\WebContent\WEB-INF\damandmanage\damandInfo_read.jsp
?????文件?????????869??2013-08-30?14:52??需求管理系統(tǒng)\DemandSystem\WebContent\WEB-INF\error.jsp
?????文件????????1367??2013-08-26?15:06??需求管理系統(tǒng)\DemandSystem\WebContent\WEB-INF\leader.jsp
?????目錄???????????0??2015-03-20?09:47??需求管理系統(tǒng)\DemandSystem\WebContent\WEB-INF\leaderapproval\
............此處省略250個文件信息
評論
共有 條評論