博主主页:猫头鹰源码
博主简介:Java领域优质创作者、博客专家、公司架构师、全网粉丝5万+、专注Java技术领域和毕业设计项目实战
主要内容:毕业设计(Javaweb项目|小程序等)、简历模板、学习资料、面试题库、技术咨询
文末联系获取
项目介绍:
该系统基于springboot技术,数据层为MyBatis,mysql数据库,具有完整的业务逻辑,适合选题:springboot、学生会、事务管理、学生会事务等。
项目功能:
学生会成员;
登录(凭学号,密码,职务登录),注册(除奖惩情况)
个人信息管理:查看,修改(学号,姓名,职务,奖惩情况不可改)
学生会成员管理:查看
部门管理:查看
活动管理:查看,参加活动(投票)
部长:
登录(凭学号,密码,职务登录),注册(除奖惩情况)
个人信息管理:查看,修改
学生会成员管理:查看
部门管理:查看,修改
活动管理:查看,参加活动(投票)
资金管理:领取资金(资金申请表通过)
消息管理:查看审核情况
工作计划管理:新增,查看,修改,删除
物品申请管理:新增,查看,修改,删除
活动申请管理:新增,查看,修改,删除
资金申请管理:新增,查看,修改,删除
主管老师:
登录注册
个人信息管理:查看,修改
学生会成员管理:查看,修改学生会干部(干部指的是身份是部长,副部长,部委的成员)的上任退任信息,奖惩情况
部门管理:查看,修改
活动管理:查看,修改,删除,发起民主竞选活动
工作计划管理:查看
活动申请管理:查看
物品申请管理:查看
资金申请管理:查看
发文件到办公室
办公室:
个人信息管理:查看,修改
学生会成员管理:增删改查,存档
部门管理:增删改查
信息管理:可向各部门部长发送信息
工作计划管理:审核(不通过或者通过向部长发送消息),查看,通过存档,删除
活动申请管理:审核(不通过或者通过消息管理向部长发送消息),查看,通过存档,删除
物品申请管理:审核(不通过或者通过消息管理向部长发送消息),查看,通过存档,删除
资金申请管理:审核(不通过或者通过消息管理向部长发送消息),查看,通过存档,删除
资金管理:查询
物品管理:查询,归还后存档,增加(申请通过自动增加),删除
财务部:
资金管理:增,删,改,查询,存档
系统包含技术:
技术:SpringBoot,Mybatis,前端框架H-ui
开发工具:idea
数据库:mysql 5.7
JDK版本:jdk1.8
部分截图说明:
下面是登录页面
登陆后进入管理员首页
管理员对学生会人员管理
管理员对部门维护
管理员对活动维护
管理员对文档维护
管理员对工作计划维护
办公室资金维护
办公室消息管理
财务部对资金发放
部分代码:
部门维护操作
/*
* @description: 跳转到部门首页
* @param request
* @param model
* @return: java.lang.String
* @author: mty
* @time: 2019/10/18 23:08
*/
@RequestMapping("/departmentIndex")
public String departmentIndex(HttpServletRequest request,Model model) throws Exception{
HttpSession session = request.getSession();
if(session.getAttribute("type") == null || session.getAttribute("name") == null){
session.setAttribute("msg", "对不起,请登录!");
return "common/adminLogin";
}
String type = session.getAttribute("type").toString();
List<Department> departmentList = departmentService.queryByAll();
int total = departmentList.size();
model.addAttribute("departmentList", departmentList);
model.addAttribute("total", total);
model.addAttribute("type", type);
return "department/index";
}
/*
* @description:进入修改
* @param id
* @param model
* @return: org.springframework.web.servlet.ModelAndView
* @author: mty
* @time: 2019/10/18 23:10
*/
@RequestMapping("/departmentEdit/{id}")
public ModelAndView departmentEdit(@PathVariable("id") String id,Model model) throws Exception{
ModelAndView mv = new ModelAndView();
List<StudentUnion> studentUnionList = studentUnionService.queryByAll();
Department department = departmentService.queryById(id);
model.addAttribute("department", department);
model.addAttribute("studentUnionList", studentUnionList);
mv.setViewName("department/edit");
return mv;
}
/*
* @description:确认修改
* @param admin
* @param model
* @param request
* @return: java.lang.String
* @author: mty
* @time: 2019/10/18 23:11
*/
@RequestMapping("/departmentEditSubmit")
public String departmentEditSubmit(Department department,Model model,HttpServletRequest request) throws Exception{
try{
departmentService.update(department);
request.setAttribute("msg", "修改成功!");
return "department/edit";
}catch (Exception e){
request.setAttribute("msg", "修改失败!");
return "department/edit";
}
}
/*
* @description:进入添加
* @param model
* @param request
* @return: java.lang.String
* @author: mty
* @time: 2019/10/18 23:11
*/
@RequestMapping("/departmentAdd")
public String departmentAdd(Model model,HttpServletRequest request) throws Exception{
List<StudentUnion> studentUnionList = studentUnionService.queryByAll();
model.addAttribute("studentUnionList", studentUnionList);
return "department/add";
}
/*
* @description:确认增加
* @param admin
* @param model
* @param request
* @return: java.lang.String
* @author: mty
* @time: 2019/10/18 23:12
*/
@RequestMapping("/departmentAddSub")
public String departmentAddSub(Department department,Model model,HttpServletRequest request) throws Exception{
try{
departmentService.addSelect(department);
request.setAttribute("msg", "添加成功!");
return "department/add";
}catch (Exception e){
request.setAttribute("msg", "添加成功!");
return "department/add";
}
}
登录操作
@RequestMapping("/loginSubmit")
public ModelAndView userSubmit(String name, String password,String type,HttpServletRequest request) throws Exception{
HttpSession session = request.getSession();
ModelAndView modelAndView = new ModelAndView();
if(type == null){
request.setAttribute("msg", "请选择类型");
modelAndView.setViewName("common/adminLogin");
return modelAndView;
}
List<Admin> list = adminService.queryByOne(name,password);
if(list.size()==0) {
request.setAttribute("msg", "对不起,用户不存在,请重试!");
modelAndView.setViewName("common/adminLogin");
return modelAndView;
}else {
Admin admin = list.get(0);
if(type.equals(list.get(0).getType())){
session.setAttribute("name", name);
session.setAttribute("password", password);
session.setAttribute("type", list.get(0).getType());
if(list.get(0).getType().equals("01")){
modelAndView.setViewName("indexMainTeacher");
return modelAndView;
}else if(list.get(0).getType().equals("02")){
modelAndView.setViewName("indexOffice");
return modelAndView;
}else if(list.get(0).getType().equals("03")){
modelAndView.setViewName("indexFinance");
return modelAndView;
}else if(list.get(0).getType().equals("04")){
modelAndView.setViewName("indexUser");
return modelAndView;
}else if(list.get(0).getType().equals("05")){
modelAndView.setViewName("indexMinister");
return modelAndView;
}else{
request.setAttribute("msg", "对不起,数据库错误!");
modelAndView.setViewName("common/adminLogin");
return modelAndView;
}
}else{
request.setAttribute("msg", "对不起,管理员类型错误!");
modelAndView.setViewName("common/adminLogin");
return modelAndView;
}
}
}
以上就是部分功能展示,从整体上来看,本系统功能是十分完整的,界面设计简洁大方,交互友好,数据库设计也很合理,规模适中,代码工整,清晰,适合学习使用。
好了,今天就到这儿吧,小伙伴们点赞、收藏、评论,一键三连走起呀,下期见~~