总结:项目类型 项目架构 项目名称 基于校园服务 帮助系统 用户类型 角色 管理员 学生 系统类型 后端管理系统设计模式 界面外观 开发工具 还可以使用数据库 软件工程、计算机科学、技术等更合适的数据库表课程实验或课程设计作者介绍会计人员。 会计师可以免费提供减少重复检查的指导并定期发布。
项目类型:JAVA WEB项目(B/S架构)
项目名称:基于SSM的校园服务帮助系统
用户类型:两种角色(管理员) + Student) 系统类型:后台管理系统 设计模式:SSM
界面外观:lauiui 开发工具:Eclipse(也可以使用Idea) 数据库:Mysql+Navicat 数据库表:4 个用途:实验或课程设计用于软件工程、计算机科学与技术课程
作者简介: 会计系主任定期提供免费、重复检查和高质量的手工制作源代码。会提供课程设计和毕业制作指导!即使是刚从双一流大学毕业的学长也曾经是初学者!
关注回复学生JavaWeb源码免费获取套装
关注回复ppt免费获取367套毕业答辩PPT模板
关注回复简历,200套程序员简历模板免费获取
关注地址:其他项目及项目来源
课程设计推荐链接
毕业设计推荐链接
免费ppt资源:
免费简历资源:
学生客户端功能介绍注册页面
登录页面
任务中心(帮助别人解决问题)
p>
接受任务
任务管理(接受任务后任务完成)
任务已确认完成,完成后可以取消并领取奖励,领取者可以获得金币奖励
p>
更改个人数据
管理员终端功能 大学管理简介
入学流程
任务管理(可以取消任务,还可以查看发出者和接收者信息) )
用户管理
更改用户信息
添加子管理员
项目结构
数据库设计
显示部分代码(以管理员端控制器为例) package com.ssm.controller;import java.text.SimpleDateFormat;import java.util.Date;import java.util.List;import javax.资源;导入 javax.servlet.http.HttpServletRequest;导入 org.springframework.beans.propertyeditors.CustomDateEditor;导入 org.springframework.stereotype.Controller;导入 org.springframework.ui.Model;导入 org.springframework.web.bind .ServletRequestDataBinder ;导入org.springframework.web.bind.annotation.RequestMapping;导入org.springframework.web.bind.annotation.RequestParam;导入org.springframework.web.bind.annotation.SessionAttributes;导入com.ssm.po.Admin ;导入 com.ssm .po.School;导入 com.ssm.po.Task;导入 com.ssm.po.User;导入 com.ssm.service.AdminService;导入 com.ssm.service.SchoolService;导入 com.ssm .service.TaskService;import com.ssm.service.UserService;/** * ****管理员函数**** * ------- *管理员登录。 *管理员的个人信息已更新。 * 更新密码。 *添加管理员。 * ------ * 获取任务列表。 * 关闭待处理的任务。 * ------ * 获取用户列表。 * 读取用户。 * 添加用户余额。 * 删除用户限制。 * 添加用户限制。 * - --------- * 获取学校列表。 *请参阅各学校的信息。 *学校信息已更新。 * 添加机构。 * * @author * */@Controller@SessionAttributes({ "nowadmin" })@RequestMapping(value = "admin/")public class AdminController {@Resource(name = "adminService")public AdminService adminService;@Resource(name = " schoolService")public SchoolService schoolService;@Resource(name = "taskService")public TaskService taskService;@Resource(name = "userService")public UserService userService;// 登录 @RequestMapping("adminlogin.do")publicString adminlogin(String account, String password, model model) {admin admin = null;admin = adminService.login(account);if (admin == null) {model.addAttribute("msg", "登录账户不存在" ) ;//return "login";}if (password.equals(admin.getPassword())) {model.addAttribute("nowadmin", admin);return "adminIndex";} else {model.addAttribute("msg " , "密码验证错误正确");return "login";}} //Update@RequestMapping("update.do")public String update(HttpServletRequest request, Admin admin, Model model) {int r = adminService. admin) ;if (r > 0) {model.addAttribute("msg", "更新成功,请重新登录");request.getSession(false).removeAttribute("nowadmin"); return "登录";} model .addAttribute( "msg", "更新失败");return "adminUpdate";}//Update@RequestMapping("updatepwd.do")public String updatepwd(HttpServletRequest request, String oldpassword, Admin admin, Model model) {System.out.println("9999999999999");Admin oldadmin = (Admin) request.getSession(false).getAttribute("nowadmin");System.out.println("6666666666666");System .out.println(oldadmin.getPassword());System.out.println(oldpassword);if (!oldadmin.getPassword().equals(oldpassword)) {model.addAttribute("msg", "原密码不正确. ") ;return "adminPassword";}int r = adminService.updateAdminInfo(admin);if (r > 0) {model.addAttribute("msg", "更改成功,请重新登录") ;request.getSession (false) ).removeAttribute("nowadmin");return "login";}model.addAttribute("msg", "修改失败");return "adminPassword";}@RequestMapping("getadmin.do" )public String getadmin (String helpstr , HttpServletRequest request , Model model) {int acid = 0;try {aid = Integer.parseInt(aidstr);} catch (Exception e) {model.addAttribute("msg", "发生错误。我做到了”);return "adminInfo";}if (aid == 0) {model.addAttribute("msg", "发生错误");return "adminInfo";}/* * Admin admin = adminService.getByUid(stuid) *Model 。 addAttribute("user", user); */return "adminInfo";}@RequestMapping("addadmin.do")public String addadmin(String account, HttpServletRequest request, Model model) {// 检查重复帐户 int countnum = adminService 。 getAccountCount(account);if (countnum > 0) {model.addAttribute("msg", account + "此帐户正在使用中");return "adminAddAdmin";}Admin admin = new Admin(0, account, " 123456" , Account, new Date(), 0);int result = adminService.setAdmin(admin);if (result 0) {model.addAttribute("msg", "Success");} else {model.addAttribute(" msg" , "Failed");}return gettasks(words, schoolidstr, model);}//获取用户信息@RequestMapping("getusers.do")public String getusers(String userstr, Model model) {model.addAttribute("keys", userstr);if (userstr != null) {userstr = "%" + userstr + "%";} else {userstr = "%%";}List list = userService.getByLikeNameAccount(userstr );model.addAttribute("list", list);return "adminUser";}// 使用@RequestMapping("getuser.do")读取用户并添加余额 public String getuser(String Stuidstr, Model model) { int Stuid = 0;try {stuid = Integer.parseInt(stuidstr);} catch (Exception e) {model.addAttribute("msg", "发生错误");return "userInfo";} if (stuid == 0) { model.addAttribute("msg", "发生错误");return "userInfo";}用户 user = userService.getByUid(stuid);model.addAttribute("theuser", user );return "adminUserMoney";}//添加用户余额 @RequestMapping("addusermoney.do")public String addusermoney(String Moneystr, String Stuidstr, Model model) {doublemoney = 0.00;try {money = Double.parseDouble(moneystr );}catch (Exception e) {model.addAttribute("msg", "金额发生错误");return getuser(stuidstr, model);}if (stuidstr == null) {model.addAttribute("msg", "发生错误" );return getuser(stuidstr, model);} else {if (stuidstr.length() == 0) {model.addAttribute("msg", "发生错误");return getuser(stuidstr , model) );}}int Stuid = 0;try {stuid = Integer.parseInt(stuidstr);if (stuid == 0) {model.addAttribute("msg", "发生错误") ;return getuser( Stuidstr, model) ;}} catch (Exception e) {model.addAttribute("msg", "发生错误");return getuser(stuidstr, model);}User theUser = userService.getByUid(stuid);theUser. setMoney(theUser.getMoney() + Money);int r = userService.updateUserInfo(theUser);if (r > 0) {model.addAttribute("msg", "更改成功");} else { model.addAttribute(" msg", "修改失败");} return getuser(stuidstr, model);}//去掉用户限制 @RequestMapping("useropen.do")public String useropen(String Keys, String Stuidstr, Model model) {if (stuidstr == null) {model.addAttribute("msg", "发生错误");return getusers(keys, model ) ; } else {if (stuidstr.length() == 0) {model.addAttribute("msg", "发生错误");return getusers(keys, model);}}int Stuid = 0;try {stuid = Integer .parseInt (stuidstr);if (stuid == 0) {model.addAttribute("msg", "发生错误");return getusers(keys, model);}} catch (Exception e) {model.addAttribute (" msg", "发生错误");return getusers(keys, model);}User theUser = userService.getByUid(stuid);theUser.setState(0);int r = userService.updateUserInfo (theUser);if ( r > 0) {model .addAttribute("msg", "修改成功");} else {model.addAttribute("msg", "修改失败");}return getusers(keys, model) ;}// 限制用户@RequestMapping("userclose.do")public String userclose(String key, String Stuidstr,model model) {if (stuidstr == null) {model.addAttribute("msg", "发生错误");return getusers(keys, model);} else {if (stuidstr.length() == 0 ) { model .addAttribute("msg", "发生错误");return getusers(keys, model);}}int Stuid = 0;try {stuid = Integer.parseInt(stuidstr);if (stuid == 0) {model . addAttribute ("msg", "发生错误");return getusers(keys, model);}} catch (Exception e) {model.addAttribute("msg", "发生错误");return getusers(键,模型) );} User theUser = userService.getByUid(stuid);theUser.setState(1);int r = userService.updateUserInfo(theUser);if (r > 0) {model.addAttribute("msg", "修改成功");} else {model.addAttribute("msg", "修改失败");}return getusers(keys, model);}//读取所有学校 @RequestMapping(" getschools.do")public String getschools(模型 model) { List list = schoolService.getAllSchools();model.addAttribute("List",list);return "adminSchool";} // 读取学校信息 @RequestMapping("getschool.do")public String getschool(String schoolidstr, Model model) {if (schoolidstr == null) {model.addAttribute(" msg" , "发生错误");return "adminSchoolSetting";} else {if (schoolidstr.length() == 0) {model.addAttribute("msg", "发生错误");return "adminSchoolSetting ";} } int schoolid = 0;try {schoolid = Integer.parseInt(schoolidstr);if (schoolid == 0) {model.addAttribute("msg", "发生错误");return "adminSchoolSetting" }} catch (异常 e ) {model.addAttribute("msg", "发生错误");return getschools(model);}School theSchool = schoolService.getSchoolByID(schoolid);if (theSchool != null) { model.addAttribute("theSchool ", theSchool) ;} else {model.addAttribute("msg", "读取失败");}return "adminSchoolSetting";}//school@RequestMapping("updateschool.do")public String 我会更新updateschool(School school, Model model) {int r = 0;r = schoolService.updateSchool(school);if (r > 0) {model.addAttribute("msg", "更改成功 - 更新页面显示" ); } else {model.addAttribute("msg", "修改失败");}School theSchool = schoolService.getSchoolByID(school.getSchoolid());model.addAttribute("theSchool", theSchool);return "adminSchoolSetting "; /更新学校 @RequestMapping("addschool.do") public String addschool(String name, Model model) {if (name == null) {model.addAttribute("msg", "添加失败");return " adminSchoolAdd "; } else {if (name.length() == 0) {model.addAttribute("msg", "添加失败");return "adminSchoolAdd";}} School theSchool = new School(0, name, new Date () , 0);int r = 0;r = schoolService.setSchool(theSchool);if (r > 0) {model.addAttribute("msg", "添加成功");model.addAttribute("flag", "添加成功");return "admin学校添加";} else {model.addAttribute("msg", "添加失败");return "adminSchoolAdd";}}@org.springframework.web.bind.annotation.InitBinderpublic void InitBinder(ServletRequestDataBinder bin) {bin.registerCustomEditor(Date) ) .class, new CustomDateEditor(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"), true));}}
评论前必须登录!
注册