注意:该项目只展示部分功能,如需了解,评论区咨询即可。
本文目录
- 1.开发环境
- 2.系统的设计背景
- 3 前后台功能设计
- 3.1 前台功能
- 3.2 后台功能
- 4 系统页面展示
- 4.1 学生功能模块展示
- 4.2 干部功能模块展示
- 4.3 管理员功能模块展示
- 5 更多推荐
- 6 部分功能代码
- 6.1 招新信息模块
- 6.2 申请模块
1.开发环境
开发语言:Java
数据库:MySQL
后台框架:SSM
编译工具:Idea、Eclipse、MyEclipse (选其一)
其他:jdk1.8、Tomcat
eclipse 下载
mysql 5.7 下载
jdk 1.8 下载
tomcat 8.0 下载
maven 3.5 下载
idea 下载
2.系统的设计背景
随着教育事业的发展以及高校生源的扩充,越来越多的学生进入大学学习。在大学里也有着各种各样的校园组织,例如校园学生会、社团、大学生联合会等组织。大学里学习的不仅仅是专业知识,还考验学生各方面的做事能力、为人处世的能力,而加入这些社团是锻炼学生各方面综合素质发展的最佳途径。在校园组织中,学生可以充分利用可与时间,加入感兴趣的组织,可以展现自己的才艺获得自信,还可以促进人与人之间的交流。学校也非常重视校园的社团组织活动,很希望学生能够通过自主的能力去学习去锻炼去丰富自己的大学生活。但由于学校的学生数量庞大,有时会出现管理不到位的情况,因此结合网络平台的帮助来管理社团业务,能让社团管理更有条理,更加规范。
大学生社团管理系统设计了三个用户角色,分别是学生、干部、管理员。学生可以通过注册登录,可以查看社团的岗位信息,活动信息、招新信息、在线留言讨论等,还可以通过进入系统后台,修改个人资料,填写加入社团的申请,等待干部的审批。干部可以通过登录,进入系统后台审批学生加入社团的申请,查看工作安排、岗位信息、个人考评信息,还可以发布社团招新计划,申请经费。管理员可以通过登录,进入系统后台管理系统的用户、干部的管理、岗位信息、部门的管理、工作计划、活动计划、经费申请、个人考评、在线留言的管理。
3 前后台功能设计
3.1 前台功能
3.2 后台功能
4 系统页面展示
4.1 学生功能模块展示
4.2 干部功能模块展示
4.3 管理员功能模块展示
5 更多推荐
2023年计算机毕业设计选题大全 计算机毕业设计选题推荐
基于微信小程序的在线小说阅读系统SpringBoot
基于微信小程序的大学生心理预约咨询系统
基于协同过滤算法的农特产商城微信小程序
基于微信小程序高校学生课堂扫码考勤签到系统
6 部分功能代码
6.1 招新信息模块
@Controller
public class ZhaoxinxinxiController {
@Resource
private ZhaoxinxinxiServer zhaoxinxinxiService;
@RequestMapping("addZhaoxinxinxi.do")
public String addZhaoxinxinxi(HttpServletRequest request,Zhaoxinxinxi zhaoxinxinxi,HttpSession session) throws SQLException{
Timestamp time=new Timestamp(System.currentTimeMillis());
zhaoxinxinxi.setAddtime(time.toString().substring(0, 19));
zhaoxinxinxiService.add(zhaoxinxinxi);
session.setAttribute("backxx", "添加成功");
session.setAttribute("backurl", request.getHeader("Referer"));
//session.setAttribute("backurl", "zhaoxinxinxiList.do");
return "redirect:postback.jsp";
//return "redirect:zhaoxinxinxiList.do";
}
// 处理编辑
@RequestMapping("doUpdateZhaoxinxinxi.do")
public String doUpdateZhaoxinxinxi(int id,ModelMap map,Zhaoxinxinxi zhaoxinxinxi){
zhaoxinxinxi=zhaoxinxinxiService.getById(id);
map.put("zhaoxinxinxi", zhaoxinxinxi);
return "zhaoxinxinxi_updt";
}
// 后台详细
@RequestMapping("zhaoxinxinxiDetail.do")
public String zhaoxinxinxiDetail(int id,ModelMap map,Zhaoxinxinxi zhaoxinxinxi){
zhaoxinxinxi=zhaoxinxinxiService.getById(id);
map.put("zhaoxinxinxi", zhaoxinxinxi);
return "zhaoxinxinxi_detail";
}
// 前台详细
@RequestMapping("zxxxDetail.do")
public String zxxxDetail(int id,ModelMap map,Zhaoxinxinxi zhaoxinxinxi){
zhaoxinxinxi=zhaoxinxinxiService.getById(id);
map.put("zhaoxinxinxi", zhaoxinxinxi);
return "zhaoxinxinxidetail";
}
//
@RequestMapping("updateZhaoxinxinxi.do")
public String updateZhaoxinxinxi(int id,ModelMap map,Zhaoxinxinxi zhaoxinxinxi,HttpServletRequest request,HttpSession session){
zhaoxinxinxiService.update(zhaoxinxinxi);
session.setAttribute("backxx", "修改成功");
session.setAttribute("backurl", request.getHeader("Referer"));
return "redirect:postback.jsp";
//String url = request.getHeader("Referer");
//return "redirect:"+url;
//return "redirect:zhaoxinxinxiList.do";
}
// 分页查询
@RequestMapping("zhaoxinxinxiList.do")
public String zhaoxinxinxiList(@RequestParam(value="page",required=false)String page,
ModelMap map,HttpSession session,Zhaoxinxinxi zhaoxinxinxi, String bianhao, String biaoti, String tupian, String zhaoxinneirong, String zhaoxinshijian1,String zhaoxinshijian2, String jieshushijian1,String jieshushijian2, String fabushijian1,String fabushijian2, String faburen){
if(page==null||page.equals("")){
page="1";
}
PageBean pageBean=new PageBean(Integer.parseInt(page), 5);
Map<String, Object> pmap=new HashMap<String,Object>();
pmap.put("pageno", pageBean.getStart());
pmap.put("pageSize", 5);
if(bianhao==null||bianhao.equals("")){pmap.put("bianhao", null);}else{pmap.put("bianhao", bianhao);}
if(biaoti==null||biaoti.equals("")){pmap.put("biaoti", null);}else{pmap.put("biaoti", biaoti);}
if(tupian==null||tupian.equals("")){pmap.put("tupian", null);}else{pmap.put("tupian", tupian);}
if(zhaoxinneirong==null||zhaoxinneirong.equals("")){pmap.put("zhaoxinneirong", null);}else{pmap.put("zhaoxinneirong", zhaoxinneirong);}
if(zhaoxinshijian1==null||zhaoxinshijian1.equals("")){pmap.put("zhaoxinshijian1", null);}else{pmap.put("zhaoxinshijian1", zhaoxinshijian1);}
if(zhaoxinshijian2==null||zhaoxinshijian2.equals("")){pmap.put("zhaoxinshijian2", null);}else{pmap.put("zhaoxinshijian2", zhaoxinshijian2);}
if(jieshushijian1==null||jieshushijian1.equals("")){pmap.put("jieshushijian1", null);}else{pmap.put("jieshushijian1", jieshushijian1);}
if(jieshushijian2==null||jieshushijian2.equals("")){pmap.put("jieshushijian2", null);}else{pmap.put("jieshushijian2", jieshushijian2);}
if(fabushijian1==null||fabushijian1.equals("")){pmap.put("fabushijian1", null);}else{pmap.put("fabushijian1", fabushijian1);}
if(fabushijian2==null||fabushijian2.equals("")){pmap.put("fabushijian2", null);}else{pmap.put("fabushijian2", fabushijian2);}
if(faburen==null||faburen.equals("")){pmap.put("faburen", null);}else{pmap.put("faburen", faburen);}
int total=zhaoxinxinxiService.getCount(pmap);
pageBean.setTotal(total);
List<Zhaoxinxinxi> list=zhaoxinxinxiService.getByPage(pmap);
map.put("page", pageBean);
map.put("list", list);
session.setAttribute("p", 1);
return "zhaoxinxinxi_list";
}
@RequestMapping("zhaoxinxinxiList2.do")
public String zhaoxinxinxiList2(@RequestParam(value="page",required=false)String page,
ModelMap map,HttpSession session,Zhaoxinxinxi zhaoxinxinxi, String bianhao, String biaoti, String tupian, String zhaoxinneirong, String zhaoxinshijian1,String zhaoxinshijian2, String jieshushijian1,String jieshushijian2, String fabushijian1,String fabushijian2, String faburen,HttpServletRequest request){
/*if(session.getAttribute("user")==null){
return "login";
}*/
if(page==null||page.equals("")){
page="1";
}
PageBean pageBean=new PageBean(Integer.parseInt(page), 15);
Map<String, Object> pmap=new HashMap<String,Object>();
pmap.put("pageno", pageBean.getStart());
pmap.put("pageSize", 15);
pmap.put("faburen", (String)request.getSession().getAttribute("username"));
if(bianhao==null||bianhao.equals("")){pmap.put("bianhao", null);}else{pmap.put("bianhao", bianhao);}
if(biaoti==null||biaoti.equals("")){pmap.put("biaoti", null);}else{pmap.put("biaoti", biaoti);}
if(tupian==null||tupian.equals("")){pmap.put("tupian", null);}else{pmap.put("tupian", tupian);}
if(zhaoxinneirong==null||zhaoxinneirong.equals("")){pmap.put("zhaoxinneirong", null);}else{pmap.put("zhaoxinneirong", zhaoxinneirong);}
if(zhaoxinshijian1==null||zhaoxinshijian1.equals("")){pmap.put("zhaoxinshijian1", null);}else{pmap.put("zhaoxinshijian1", zhaoxinshijian1);}
if(zhaoxinshijian2==null||zhaoxinshijian2.equals("")){pmap.put("zhaoxinshijian2", null);}else{pmap.put("zhaoxinshijian2", zhaoxinshijian2);}
if(jieshushijian1==null||jieshushijian1.equals("")){pmap.put("jieshushijian1", null);}else{pmap.put("jieshushijian1", jieshushijian1);}
if(jieshushijian2==null||jieshushijian2.equals("")){pmap.put("jieshushijian2", null);}else{pmap.put("jieshushijian2", jieshushijian2);}
if(fabushijian1==null||fabushijian1.equals("")){pmap.put("fabushijian1", null);}else{pmap.put("fabushijian1", fabushijian1);}
if(fabushijian2==null||fabushijian2.equals("")){pmap.put("fabushijian2", null);}else{pmap.put("fabushijian2", fabushijian2);}
int total=zhaoxinxinxiService.getCount(pmap);
pageBean.setTotal(total);
List<Zhaoxinxinxi> list=zhaoxinxinxiService.getByPage(pmap);
map.put("page", pageBean);
map.put("list", list);
session.setAttribute("p", 1);
return "zhaoxinxinxi_list2";
}
@RequestMapping("zxxxList.do")
public String zxxxList(@RequestParam(value="page",required=false)String page,
ModelMap map,HttpSession session,Zhaoxinxinxi zhaoxinxinxi, String bianhao, String biaoti, String tupian, String zhaoxinneirong, String zhaoxinshijian1,String zhaoxinshijian2, String jieshushijian1,String jieshushijian2, String fabushijian1,String fabushijian2, String faburen){
if(page==null||page.equals("")){
page="1";
}
PageBean pageBean=new PageBean(Integer.parseInt(page), 5);
Map<String, Object> pmap=new HashMap<String,Object>();
pmap.put("pageno", pageBean.getStart());
pmap.put("pageSize", 5);
if(bianhao==null||bianhao.equals("")){pmap.put("bianhao", null);}else{pmap.put("bianhao", bianhao);}
if(biaoti==null||biaoti.equals("")){pmap.put("biaoti", null);}else{pmap.put("biaoti", biaoti);}
if(tupian==null||tupian.equals("")){pmap.put("tupian", null);}else{pmap.put("tupian", tupian);}
if(zhaoxinneirong==null||zhaoxinneirong.equals("")){pmap.put("zhaoxinneirong", null);}else{pmap.put("zhaoxinneirong", zhaoxinneirong);}
if(zhaoxinshijian1==null||zhaoxinshijian1.equals("")){pmap.put("zhaoxinshijian1", null);}else{pmap.put("zhaoxinshijian1", zhaoxinshijian1);}
if(zhaoxinshijian2==null||zhaoxinshijian2.equals("")){pmap.put("zhaoxinshijian2", null);}else{pmap.put("zhaoxinshijian2", zhaoxinshijian2);}
if(jieshushijian1==null||jieshushijian1.equals("")){pmap.put("jieshushijian1", null);}else{pmap.put("jieshushijian1", jieshushijian1);}
if(jieshushijian2==null||jieshushijian2.equals("")){pmap.put("jieshushijian2", null);}else{pmap.put("jieshushijian2", jieshushijian2);}
if(fabushijian1==null||fabushijian1.equals("")){pmap.put("fabushijian1", null);}else{pmap.put("fabushijian1", fabushijian1);}
if(fabushijian2==null||fabushijian2.equals("")){pmap.put("fabushijian2", null);}else{pmap.put("fabushijian2", fabushijian2);}
if(faburen==null||faburen.equals("")){pmap.put("faburen", null);}else{pmap.put("faburen", faburen);}
int total=zhaoxinxinxiService.getCount(pmap);
pageBean.setTotal(total);
List<Zhaoxinxinxi> list=zhaoxinxinxiService.getByPage(pmap);
map.put("page", pageBean);
map.put("list", list);
session.setAttribute("p", 1);
return "zhaoxinxinxilist";
}
@RequestMapping("deleteZhaoxinxinxi.do")
public String deleteZhaoxinxinxi(int id,HttpServletRequest request){
zhaoxinxinxiService.delete(id);
String url = request.getHeader("Referer");
return "redirect:"+url;
//return "redirect:zhaoxinxinxiList.do";
}
6.2 申请模块
@Controller
public class ShenqingxinxiController {
@Resource
private ShenqingxinxiServer shenqingxinxiService;
@RequestMapping("addShenqingxinxi.do")
public String addShenqingxinxi(HttpServletRequest request,Shenqingxinxi shenqingxinxi,HttpSession session) throws SQLException{
Timestamp time=new Timestamp(System.currentTimeMillis());
shenqingxinxi.setAddtime(time.toString().substring(0, 19));
shenqingxinxiService.add(shenqingxinxi);
session.setAttribute("backxx", "添加成功");
session.setAttribute("backurl", request.getHeader("Referer"));
//session.setAttribute("backurl", "shenqingxinxiList.do");
return "redirect:postback.jsp";
//return "redirect:shenqingxinxiList.do";
}
// 处理编辑
@RequestMapping("doUpdateShenqingxinxi.do")
public String doUpdateShenqingxinxi(int id,ModelMap map,Shenqingxinxi shenqingxinxi){
shenqingxinxi=shenqingxinxiService.getById(id);
map.put("shenqingxinxi", shenqingxinxi);
return "shenqingxinxi_updt";
}
// 后台详细
@RequestMapping("shenqingxinxiDetail.do")
public String shenqingxinxiDetail(int id,ModelMap map,Shenqingxinxi shenqingxinxi){
shenqingxinxi=shenqingxinxiService.getById(id);
map.put("shenqingxinxi", shenqingxinxi);
return "shenqingxinxi_detail";
}
// 前台详细
@RequestMapping("sqxxDetail.do")
public String sqxxDetail(int id,ModelMap map,Shenqingxinxi shenqingxinxi){
shenqingxinxi=shenqingxinxiService.getById(id);
map.put("shenqingxinxi", shenqingxinxi);
return "shenqingxinxidetail";
}
//
@RequestMapping("updateShenqingxinxi.do")
public String updateShenqingxinxi(int id,ModelMap map,Shenqingxinxi shenqingxinxi,HttpServletRequest request,HttpSession session){
shenqingxinxiService.update(shenqingxinxi);
session.setAttribute("backxx", "修改成功");
session.setAttribute("backurl", request.getHeader("Referer"));
return "redirect:postback.jsp";
//String url = request.getHeader("Referer");
//return "redirect:"+url;
//return "redirect:shenqingxinxiList.do";
}
// 分页查询
@RequestMapping("shenqingxinxiList.do")
public String shenqingxinxiList(@RequestParam(value="page",required=false)String page,
ModelMap map,HttpSession session,Shenqingxinxi shenqingxinxi, String yonghuming, String xingming, String xingbie, String bumen, String zhiwei, String shenfenzheng, String shouji, String dizhi, String issh){
if(page==null||page.equals("")){
page="1";
}
PageBean pageBean=new PageBean(Integer.parseInt(page), 15);
Map<String, Object> pmap=new HashMap<String,Object>();
pmap.put("pageno", pageBean.getStart());
pmap.put("pageSize", 15);
if(yonghuming==null||yonghuming.equals("")){pmap.put("yonghuming", null);}else{pmap.put("yonghuming", yonghuming);}
if(xingming==null||xingming.equals("")){pmap.put("xingming", null);}else{pmap.put("xingming", xingming);}
if(xingbie==null||xingbie.equals("")){pmap.put("xingbie", null);}else{pmap.put("xingbie", xingbie);}
if(bumen==null||bumen.equals("")){pmap.put("bumen", null);}else{pmap.put("bumen", bumen);}
if(zhiwei==null||zhiwei.equals("")){pmap.put("zhiwei", null);}else{pmap.put("zhiwei", zhiwei);}
if(shenfenzheng==null||shenfenzheng.equals("")){pmap.put("shenfenzheng", null);}else{pmap.put("shenfenzheng", shenfenzheng);}
if(shouji==null||shouji.equals("")){pmap.put("shouji", null);}else{pmap.put("shouji", shouji);}
if(dizhi==null||dizhi.equals("")){pmap.put("dizhi", null);}else{pmap.put("dizhi", dizhi);}
int total=shenqingxinxiService.getCount(pmap);
pageBean.setTotal(total);
List<Shenqingxinxi> list=shenqingxinxiService.getByPage(pmap);
map.put("page", pageBean);
map.put("list", list);
session.setAttribute("p", 1);
return "shenqingxinxi_list";
}
@RequestMapping("shenqingxinxiList3.do")
public String shenqingxinxiList3(@RequestParam(value="page",required=false)String page,
ModelMap map,HttpSession session,Shenqingxinxi shenqingxinxi, String yonghuming, String xingming, String xingbie, String bumen, String zhiwei, String shenfenzheng, String shouji, String dizhi, String issh){
if(page==null||page.equals("")){
page="1";
}
PageBean pageBean=new PageBean(Integer.parseInt(page), 15);
Map<String, Object> pmap=new HashMap<String,Object>();
pmap.put("pageno", pageBean.getStart());
pmap.put("pageSize", 15);
if(yonghuming==null||yonghuming.equals("")){pmap.put("yonghuming", null);}else{pmap.put("yonghuming", yonghuming);}
if(xingming==null||xingming.equals("")){pmap.put("xingming", null);}else{pmap.put("xingming", xingming);}
if(xingbie==null||xingbie.equals("")){pmap.put("xingbie", null);}else{pmap.put("xingbie", xingbie);}
if(bumen==null||bumen.equals("")){pmap.put("bumen", null);}else{pmap.put("bumen", bumen);}
if(zhiwei==null||zhiwei.equals("")){pmap.put("zhiwei", null);}else{pmap.put("zhiwei", zhiwei);}
if(shenfenzheng==null||shenfenzheng.equals("")){pmap.put("shenfenzheng", null);}else{pmap.put("shenfenzheng", shenfenzheng);}
if(shouji==null||shouji.equals("")){pmap.put("shouji", null);}else{pmap.put("shouji", shouji);}
if(dizhi==null||dizhi.equals("")){pmap.put("dizhi", null);}else{pmap.put("dizhi", dizhi);}
int total=shenqingxinxiService.getCount(pmap);
pageBean.setTotal(total);
List<Shenqingxinxi> list=shenqingxinxiService.getByPage(pmap);
map.put("page", pageBean);
map.put("list", list);
session.setAttribute("p", 1);
return "shenqingxinxi_list3";
}
@RequestMapping("shenqingxinxi_yanben1.do")
public String shenqingxinxi_yanben1(@RequestParam(value="page",required=false)String page,
ModelMap map,HttpSession session,Shenqingxinxi shenqingxinxi, String yonghuming, String xingming, String xingbie, String bumen, String zhiwei, String shenfenzheng, String shouji, String dizhi, String issh){
if(page==null||page.equals("")){
page="1";
}
PageBean pageBean=new PageBean(Integer.parseInt(page), 15);
Map<String, Object> pmap=new HashMap<String,Object>();
pmap.put("pageno", pageBean.getStart());
pmap.put("pageSize", 15);
if(yonghuming==null||yonghuming.equals("")){pmap.put("yonghuming", null);}else{pmap.put("yonghuming", yonghuming);}
if(xingming==null||xingming.equals("")){pmap.put("xingming", null);}else{pmap.put("xingming", xingming);}
if(xingbie==null||xingbie.equals("")){pmap.put("xingbie", null);}else{pmap.put("xingbie", xingbie);}
if(bumen==null||bumen.equals("")){pmap.put("bumen", null);}else{pmap.put("bumen", bumen);}
if(zhiwei==null||zhiwei.equals("")){pmap.put("zhiwei", null);}else{pmap.put("zhiwei", zhiwei);}
if(shenfenzheng==null||shenfenzheng.equals("")){pmap.put("shenfenzheng", null);}else{pmap.put("shenfenzheng", shenfenzheng);}
if(shouji==null||shouji.equals("")){pmap.put("shouji", null);}else{pmap.put("shouji", shouji);}
if(dizhi==null||dizhi.equals("")){pmap.put("dizhi", null);}else{pmap.put("dizhi", dizhi);}
int total=shenqingxinxiService.getCount(pmap);
pageBean.setTotal(total);
List<Shenqingxinxi> list=shenqingxinxiService.getByPage(pmap);
map.put("page", pageBean);
map.put("list", list);
session.setAttribute("p", 1);
return "shenqingxinxi_yanben1";
}
@RequestMapping("shenqingxinxi_yanben2.do")
public String shenqingxinxi_yanben2(@RequestParam(value="page",required=false)String page,
ModelMap map,HttpSession session,Shenqingxinxi shenqingxinxi, String yonghuming, String xingming, String xingbie, String bumen, String zhiwei, String shenfenzheng, String shouji, String dizhi, String issh){
if(page==null||page.equals("")){
page="1";
}
PageBean pageBean=new PageBean(Integer.parseInt(page), 15);
Map<String, Object> pmap=new HashMap<String,Object>();
pmap.put("pageno", pageBean.getStart());
pmap.put("pageSize", 15);
if(yonghuming==null||yonghuming.equals("")){pmap.put("yonghuming", null);}else{pmap.put("yonghuming", yonghuming);}
if(xingming==null||xingming.equals("")){pmap.put("xingming", null);}else{pmap.put("xingming", xingming);}
if(xingbie==null||xingbie.equals("")){pmap.put("xingbie", null);}else{pmap.put("xingbie", xingbie);}
if(bumen==null||bumen.equals("")){pmap.put("bumen", null);}else{pmap.put("bumen", bumen);}
if(zhiwei==null||zhiwei.equals("")){pmap.put("zhiwei", null);}else{pmap.put("zhiwei", zhiwei);}
if(shenfenzheng==null||shenfenzheng.equals("")){pmap.put("shenfenzheng", null);}else{pmap.put("shenfenzheng", shenfenzheng);}
if(shouji==null||shouji.equals("")){pmap.put("shouji", null);}else{pmap.put("shouji", shouji);}
if(dizhi==null||dizhi.equals("")){pmap.put("dizhi", null);}else{pmap.put("dizhi", dizhi);}
int total=shenqingxinxiService.getCount(pmap);
pageBean.setTotal(total);
List<Shenqingxinxi> list=shenqingxinxiService.getByPage(pmap);
map.put("page", pageBean);
map.put("list", list);
session.setAttribute("p", 1);
return "shenqingxinxi_yanben2";
}
@RequestMapping("shenqingxinxi_yanben3.do")
public String shenqingxinxi_yanben3(@RequestParam(value="page",required=false)String page,
ModelMap map,HttpSession session,Shenqingxinxi shenqingxinxi, String yonghuming, String xingming, String xingbie, String bumen, String zhiwei, String shenfenzheng, String shouji, String dizhi, String issh){
if(page==null||page.equals("")){
page="1";
}
PageBean pageBean=new PageBean(Integer.parseInt(page), 15);
Map<String, Object> pmap=new HashMap<String,Object>();
pmap.put("pageno", pageBean.getStart());
pmap.put("pageSize", 15);
if(yonghuming==null||yonghuming.equals("")){pmap.put("yonghuming", null);}else{pmap.put("yonghuming", yonghuming);}
if(xingming==null||xingming.equals("")){pmap.put("xingming", null);}else{pmap.put("xingming", xingming);}
if(xingbie==null||xingbie.equals("")){pmap.put("xingbie", null);}else{pmap.put("xingbie", xingbie);}
if(bumen==null||bumen.equals("")){pmap.put("bumen", null);}else{pmap.put("bumen", bumen);}
if(zhiwei==null||zhiwei.equals("")){pmap.put("zhiwei", null);}else{pmap.put("zhiwei", zhiwei);}
if(shenfenzheng==null||shenfenzheng.equals("")){pmap.put("shenfenzheng", null);}else{pmap.put("shenfenzheng", shenfenzheng);}
if(shouji==null||shouji.equals("")){pmap.put("shouji", null);}else{pmap.put("shouji", shouji);}
if(dizhi==null||dizhi.equals("")){pmap.put("dizhi", null);}else{pmap.put("dizhi", dizhi);}
int total=shenqingxinxiService.getCount(pmap);
pageBean.setTotal(total);
List<Shenqingxinxi> list=shenqingxinxiService.getByPage(pmap);
map.put("page", pageBean);
map.put("list", list);
session.setAttribute("p", 1);
return "shenqingxinxi_yanben3";
}
@RequestMapping("shenqingxinxi_yanben4.do")
public String shenqingxinxi_yanben4(@RequestParam(value="page",required=false)String page,
ModelMap map,HttpSession session,Shenqingxinxi shenqingxinxi, String yonghuming, String xingming, String xingbie, String bumen, String zhiwei, String shenfenzheng, String shouji, String dizhi, String issh){
if(page==null||page.equals("")){
page="1";
}
PageBean pageBean=new PageBean(Integer.parseInt(page), 15);
Map<String, Object> pmap=new HashMap<String,Object>();
pmap.put("pageno", pageBean.getStart());
pmap.put("pageSize", 15);
if(yonghuming==null||yonghuming.equals("")){pmap.put("yonghuming", null);}else{pmap.put("yonghuming", yonghuming);}
if(xingming==null||xingming.equals("")){pmap.put("xingming", null);}else{pmap.put("xingming", xingming);}
if(xingbie==null||xingbie.equals("")){pmap.put("xingbie", null);}else{pmap.put("xingbie", xingbie);}
if(bumen==null||bumen.equals("")){pmap.put("bumen", null);}else{pmap.put("bumen", bumen);}
if(zhiwei==null||zhiwei.equals("")){pmap.put("zhiwei", null);}else{pmap.put("zhiwei", zhiwei);}
if(shenfenzheng==null||shenfenzheng.equals("")){pmap.put("shenfenzheng", null);}else{pmap.put("shenfenzheng", shenfenzheng);}
if(shouji==null||shouji.equals("")){pmap.put("shouji", null);}else{pmap.put("shouji", shouji);}
if(dizhi==null||dizhi.equals("")){pmap.put("dizhi", null);}else{pmap.put("dizhi", dizhi);}
int total=shenqingxinxiService.getCount(pmap);
pageBean.setTotal(total);
List<Shenqingxinxi> list=shenqingxinxiService.getByPage(pmap);
map.put("page", pageBean);
map.put("list", list);
session.setAttribute("p", 1);
return "shenqingxinxi_yanben4";
}
@RequestMapping("shenqingxinxi_yanben5.do")
public String shenqingxinxi_yanben5(@RequestParam(value="page",required=false)String page,
ModelMap map,HttpSession session,Shenqingxinxi shenqingxinxi, String yonghuming, String xingming, String xingbie, String bumen, String zhiwei, String shenfenzheng, String shouji, String dizhi, String issh){
if(page==null||page.equals("")){
page="1";
}
PageBean pageBean=new PageBean(Integer.parseInt(page), 15);
Map<String, Object> pmap=new HashMap<String,Object>();
pmap.put("pageno", pageBean.getStart());
pmap.put("pageSize", 15);
if(yonghuming==null||yonghuming.equals("")){pmap.put("yonghuming", null);}else{pmap.put("yonghuming", yonghuming);}
if(xingming==null||xingming.equals("")){pmap.put("xingming", null);}else{pmap.put("xingming", xingming);}
if(xingbie==null||xingbie.equals("")){pmap.put("xingbie", null);}else{pmap.put("xingbie", xingbie);}
if(bumen==null||bumen.equals("")){pmap.put("bumen", null);}else{pmap.put("bumen", bumen);}
if(zhiwei==null||zhiwei.equals("")){pmap.put("zhiwei", null);}else{pmap.put("zhiwei", zhiwei);}
if(shenfenzheng==null||shenfenzheng.equals("")){pmap.put("shenfenzheng", null);}else{pmap.put("shenfenzheng", shenfenzheng);}
if(shouji==null||shouji.equals("")){pmap.put("shouji", null);}else{pmap.put("shouji", shouji);}
if(dizhi==null||dizhi.equals("")){pmap.put("dizhi", null);}else{pmap.put("dizhi", dizhi);}
int total=shenqingxinxiService.getCount(pmap);
pageBean.setTotal(total);
List<Shenqingxinxi> list=shenqingxinxiService.getByPage(pmap);
map.put("page", pageBean);
map.put("list", list);
session.setAttribute("p", 1);
return "shenqingxinxi_yanben5";
}
@RequestMapping("shenqingxinxiList2.do")
public String shenqingxinxiList2(@RequestParam(value="page",required=false)String page,
ModelMap map,HttpSession session,Shenqingxinxi shenqingxinxi, String yonghuming, String xingming, String xingbie, String bumen, String zhiwei, String shenfenzheng, String shouji, String dizhi, String issh,HttpServletRequest request){
/*if(session.getAttribute("user")==null){
return "login";
}*/
if(page==null||page.equals("")){
page="1";
}
PageBean pageBean=new PageBean(Integer.parseInt(page), 15);
Map<String, Object> pmap=new HashMap<String,Object>();
pmap.put("pageno", pageBean.getStart());
pmap.put("pageSize", 15);
pmap.put("yonghuming", (String)request.getSession().getAttribute("username"));
if(xingming==null||xingming.equals("")){pmap.put("xingming", null);}else{pmap.put("xingming", xingming);}
if(xingbie==null||xingbie.equals("")){pmap.put("xingbie", null);}else{pmap.put("xingbie", xingbie);}
if(bumen==null||bumen.equals("")){pmap.put("bumen", null);}else{pmap.put("bumen", bumen);}
if(zhiwei==null||zhiwei.equals("")){pmap.put("zhiwei", null);}else{pmap.put("zhiwei", zhiwei);}
if(shenfenzheng==null||shenfenzheng.equals("")){pmap.put("shenfenzheng", null);}else{pmap.put("shenfenzheng", shenfenzheng);}
if(shouji==null||shouji.equals("")){pmap.put("shouji", null);}else{pmap.put("shouji", shouji);}
if(dizhi==null||dizhi.equals("")){pmap.put("dizhi", null);}else{pmap.put("dizhi", dizhi);}
int total=shenqingxinxiService.getCount(pmap);
pageBean.setTotal(total);
List<Shenqingxinxi> list=shenqingxinxiService.getByPage(pmap);
map.put("page", pageBean);
map.put("list", list);
session.setAttribute("p", 1);
return "shenqingxinxi_list2";
}
@RequestMapping("sqxxList.do")
public String sqxxList(@RequestParam(value="page",required=false)String page,
ModelMap map,HttpSession session,Shenqingxinxi shenqingxinxi, String yonghuming, String xingming, String xingbie, String bumen, String zhiwei, String shenfenzheng, String shouji, String dizhi, String issh){
if(page==null||page.equals("")){
page="1";
}
PageBean pageBean=new PageBean(Integer.parseInt(page), 15);
Map<String, Object> pmap=new HashMap<String,Object>();
pmap.put("pageno", pageBean.getStart());
pmap.put("pageSize", 15);
if(yonghuming==null||yonghuming.equals("")){pmap.put("yonghuming", null);}else{pmap.put("yonghuming", yonghuming);}
if(xingming==null||xingming.equals("")){pmap.put("xingming", null);}else{pmap.put("xingming", xingming);}
if(xingbie==null||xingbie.equals("")){pmap.put("xingbie", null);}else{pmap.put("xingbie", xingbie);}
if(bumen==null||bumen.equals("")){pmap.put("bumen", null);}else{pmap.put("bumen", bumen);}
if(zhiwei==null||zhiwei.equals("")){pmap.put("zhiwei", null);}else{pmap.put("zhiwei", zhiwei);}
if(shenfenzheng==null||shenfenzheng.equals("")){pmap.put("shenfenzheng", null);}else{pmap.put("shenfenzheng", shenfenzheng);}
if(shouji==null||shouji.equals("")){pmap.put("shouji", null);}else{pmap.put("shouji", shouji);}
if(dizhi==null||dizhi.equals("")){pmap.put("dizhi", null);}else{pmap.put("dizhi", dizhi);}
int total=shenqingxinxiService.getCount(pmap);
pageBean.setTotal(total);
List<Shenqingxinxi> list=shenqingxinxiService.getByPage(pmap);
map.put("page", pageBean);
map.put("list", list);
session.setAttribute("p", 1);
return "shenqingxinxilist";
}
@RequestMapping("sqxxListtp.do")
public String sqxxListtp(@RequestParam(value="page",required=false)String page,
ModelMap map,HttpSession session,Shenqingxinxi shenqingxinxi, String yonghuming, String xingming, String xingbie, String bumen, String zhiwei, String shenfenzheng, String shouji, String dizhi, String issh){
if(page==null||page.equals("")){
page="1";
}
PageBean pageBean=new PageBean(Integer.parseInt(page), 15);
Map<String, Object> pmap=new HashMap<String,Object>();
pmap.put("pageno", pageBean.getStart());
pmap.put("pageSize", 15);
if(yonghuming==null||yonghuming.equals("")){pmap.put("yonghuming", null);}else{pmap.put("yonghuming", yonghuming);}
if(xingming==null||xingming.equals("")){pmap.put("xingming", null);}else{pmap.put("xingming", xingming);}
if(xingbie==null||xingbie.equals("")){pmap.put("xingbie", null);}else{pmap.put("xingbie", xingbie);}
if(bumen==null||bumen.equals("")){pmap.put("bumen", null);}else{pmap.put("bumen", bumen);}
if(zhiwei==null||zhiwei.equals("")){pmap.put("zhiwei", null);}else{pmap.put("zhiwei", zhiwei);}
if(shenfenzheng==null||shenfenzheng.equals("")){pmap.put("shenfenzheng", null);}else{pmap.put("shenfenzheng", shenfenzheng);}
if(shouji==null||shouji.equals("")){pmap.put("shouji", null);}else{pmap.put("shouji", shouji);}
if(dizhi==null||dizhi.equals("")){pmap.put("dizhi", null);}else{pmap.put("dizhi", dizhi);}
int total=shenqingxinxiService.getCount(pmap);
pageBean.setTotal(total);
List<Shenqingxinxi> list=shenqingxinxiService.getByPage(pmap);
map.put("page", pageBean);
map.put("list", list);
session.setAttribute("p", 1);
return "shenqingxinxilisttp";
}
@RequestMapping("deleteShenqingxinxi.do")
public String deleteShenqingxinxi(int id,HttpServletRequest request){
shenqingxinxiService.delete(id);
String url = request.getHeader("Referer");
return "redirect:"+url;
//return "redirect:shenqingxinxiList.do";
}
源码项目、定制开发、代码讲解、答辩辅导
希望和大家多多交流!!