基于SSM的“基于决策树算法的大学生就业预测系统”的设计与实现(源码+数据库+文档)
-
开发语言:Java
-
数据库:MySQL
-
技术:SSM
-
工具:IDEA/Ecilpse、Navicat、Maven
系统展示
系统用户用例图
学校基础信息管理
毕业生基础数据
招聘信息
数据可视化展现
历年对比预测
用户管理
个人中心
日志管理
摘要
计算机的应用变得十分广泛,同时也应用在招聘就业方面。高校就业预测系统就是一种基于互联网技术诞生的新型招聘就业服务系统。高校就业预测系统设计符合操作简便、界面友好、灵活、实用、安全的要求,完成信息传递的全过程,本系统采用的工具是my eclipse,采用JSP进行开发,采用的数据库mysql数据库。系统安全性问题:通过用户密码、手机注册验证码双重保护。技术路线及关键:根据功能需求JSP在my eclipse环境下开发高校就业预测系统网站;有时也可为了需求方便使用myeclipse开发桌面管理软件简化网站的管理操作。
研究背景
科技不断飞速发展,人类文明走向一个又一个的高峰。在科技进步的浪潮中,计算机技术得到了巨大的发展,随着技术的完善,生产成本的降低,计算机走进千家万户。计算机,我们普通老百姓称之为电脑,是21世纪一种用于特高速度计算的科学仪器,可以进行数值运算,还可以用之于制图绘图,可以进行超大逻辑计算,还具有巨大的超强的存储功能。计算机是能够按照人们预先设计的程序执行工作。计算机是自动、极高速度处理海量数据的现代化智能设备,备受现代科学的关注。
研究意义
在计算机科学和网络技术发展飞速的现在,通过网络成为人们快速获取,发布和传递信息的重要方法。它在人们军事、学习、生活等各个方面都有者至关重要的作用。然而,我国还有部分医院的挂号预约仍然停留在手工记录方式,造成员工劳动强度大,工作效率非常低,就业管理方面的大量管理人员的把大量时间都消耗在就业情况统计等日常事务性工作上,造成数据统计不完整, 经过的流程太多, 影响了就业统计和管理的正常秩序。 计算机化的就业管理已成为现代化人才就业管理,必不可少的计算机技术支撑环境。高校就业预测系统是整个就业管理信息系统的主要窗口,是毕业生找工作的重要工具。
部分源码
@Controller
@RequestMapping(value = "/administrativeclass")
public class AdministrativeClassController {
@Autowired
private CollegeServiceImpl collegeService;
@Autowired
private ProfessionServiceImpl professionService;
@Autowired
private AdministrativeClassServiceImpl administrativeClassService;
@Autowired
private GraduateInformationServiceImpl graduateInformationService;
/**
* 主页
*
* @param request
* @param response
* @return
* @throws Exception
*/
@RequestMapping(value = "/index", method = { RequestMethod.GET })
public ModelAndView indexPage(HttpServletRequest request,
HttpServletResponse response) throws Exception {
ModelAndView modelAndView = new ModelAndView();
List<College> colleges = collegeService.listAll("id", "ace");
modelAndView.addObject("colleges", colleges);
List<Profession> professions = professionService.listByCollegeId(colleges.get(0).getId());
modelAndView.addObject("professions", professions);
modelAndView.setViewName("base/administrativeclass/index");
return modelAndView;
}
/**
* 获取数据
*
* @param request
* @param response
* @return
*/
@RequestMapping(value = "/data", method = { RequestMethod.POST }, produces = "application/json; charset=utf-8")
@ResponseBody
public String data(HttpServletRequest request, HttpServletResponse response) {
/**
* 获取查询参数
*/
/**
* 获取查询参数
*/
Integer collegeId = -1;
Integer professionId = -1;
String scollegeId = request.getParameter("collegeId");
if(scollegeId != null){
collegeId = Integer.parseInt(scollegeId);
}
String sprofessionId = request.getParameter("professionId");
if(sprofessionId != null){
professionId = Integer.parseInt(sprofessionId);
}
String name = request.getParameter("name");
if(name != null && name.equals("")){
name = null;
}
DataTableUtil dataTableUtil = new DataTableUtil(request);
System.out.println("===================================");
System.out.println("起始偏移=" + dataTableUtil.getStart());
System.out.println("页长=" + dataTableUtil.getLength());
System.out.println("页码=" + dataTableUtil.getPage());
System.out.println("排序字段=" + dataTableUtil.getOrderColumn());
System.out.println("排序顺序=" + dataTableUtil.getOrderDirection());
System.out.println("搜索关键字=" + dataTableUtil.getSearchValue());
System.out.println("===================================");
try {
// 总记录数
Integer recordsTotal = administrativeClassService.listAllAdministrativeClassVO(-1, -1).size();
// 关键字过滤后总记录数
Integer recordsFiltered = administrativeClassService.listAdministrativeClassVOByInfos(collegeId, professionId, name, -1, -1).size();
dataTableUtil.setResult(recordsTotal, recordsFiltered,
administrativeClassService.listAdministrativeClassVOByInfos(collegeId, professionId, name,dataTableUtil.getPage(),
dataTableUtil.getLength()));
} catch (Exception e) {
e.printStackTrace();
}
return dataTableUtil.result();
}
/**
*
* @param request
* @param response
* @return
* @throws Exception
*/
@RequestMapping(value = "/addPage", method = { RequestMethod.GET })
public ModelAndView addPage(HttpServletRequest request,
HttpServletResponse response) throws Exception {
ModelAndView modelAndView = new ModelAndView();
List<College> colleges = collegeService.listAll("id", "ace");
modelAndView.addObject("colleges", colleges);
List<Profession> professions = professionService.listByCollegeId(colleges.get(0).getId());
modelAndView.addObject("professions", professions);
modelAndView.setViewName("base/administrativeclass/add");
return modelAndView;
}
/**
* 保存
*
* @param request
* @param response
* @return
* @throws Exception
*/
@RequestMapping(value = "/add", method = { RequestMethod.GET,
RequestMethod.POST }, produces = "application/json; charset=utf-8")
public @ResponseBody String add(
@ModelAttribute("administrativeClass") AdministrativeClass administrativeClass,
HttpServletRequest request, HttpServletResponse response) {
ResultVO resultVO = new ResultVO();
UUID uuid = UUID.randomUUID();
try {
administrativeClass.setUuid(uuid.toString());
administrativeClassService.save(administrativeClass);
resultVO.setSuccess(true);
resultVO.setCode("200");
resultVO.setMessage("添加成功");
} catch (Exception e) {
resultVO.setSuccess(false);
resultVO.setCode("500");
resultVO.setMessage("添加异常");
e.printStackTrace();
}
return resultVO.toString();
}
/**
* 打开修改页面
*
* @param request
* @param response
* @return
*/
@RequestMapping(value = "/modifyPage", method = { RequestMethod.GET })
public ModelAndView modifyPage(
@RequestParam(value = "uuid", required = true) String uuid,
HttpServletRequest request, HttpServletResponse response) {
ModelAndView modelAndView = new ModelAndView();
AdministrativeClass administrativeClass;
try {
administrativeClass = administrativeClassService.getByUuid(uuid);
List<College> colleges = collegeService.listAll("id", "ace");
List<Profession> professions = professionService.listByCollegeId(administrativeClass.getCollegeId());
modelAndView.addObject("colleges", colleges);
modelAndView.addObject("professions", professions);
modelAndView.addObject("administrativeClass", administrativeClass);
modelAndView.setViewName("base/administrativeclass/modify");
} catch (Exception e) {
e.printStackTrace();
}
return modelAndView;
}
@RequestMapping(value = "/update", method = { RequestMethod.GET,
RequestMethod.POST }, produces = "application/json; charset=utf-8")
public @ResponseBody String update(HttpServletRequest request,
HttpServletResponse response) throws Exception {
ResultVO resultVO = new ResultVO();
try {
String id = request.getParameter("id");
String code = request.getParameter("code");
String name = request.getParameter("name");
String collegeId = request.getParameter("collegeId");
String professionId = request.getParameter("professionId");
System.out.println("administrativeClassController 更新班级专业id"+professionId);
AdministrativeClass administrativeClass = administrativeClassService.getById(Integer.parseInt(id));
administrativeClass.setCode(code);
administrativeClass.setName(name);
administrativeClass.setCollegeId(Integer.parseInt(collegeId));
administrativeClass.setProfessionId(Integer.parseInt(professionId));
administrativeClassService.update(administrativeClass);
resultVO.setSuccess(true);
resultVO.setCode("200");
resultVO.setMessage("更新成功");
} catch (Exception e) {
resultVO.setSuccess(false);
resultVO.setCode("500");
resultVO.setMessage("更新异常");
e.printStackTrace();
}
return resultVO.toString();
}
/**
* 删除
* @param id
* @param request
* @param response
* @return
* @throws Exception
*/
@RequestMapping(value = "/delete", method = { RequestMethod.GET,
RequestMethod.POST }, produces = "application/json; charset=utf-8")
public @ResponseBody String delete(
@RequestParam(value = "uuid", required = true) String uuid,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
ResultVO resultVO = new ResultVO();
try {
AdministrativeClass administrativeClass = administrativeClassService.getByUuid(uuid);
//该班级下是否绑定存在毕业生
if(graduateInformationService.listByClassId(administrativeClass.getId()).size() > 0){
resultVO.setSuccess(true);
resultVO.setCode("202");
resultVO.setMessage("删除失败,该专业下有学生信息,不能删除");
}
else{
administrativeClass.setDeleted(true);
administrativeClassService.update(administrativeClass);
resultVO.setSuccess(true);
resultVO.setCode("200");
resultVO.setMessage("删除成功");
}
} catch (Exception e) {
resultVO.setSuccess(false);
resultVO.setCode("500");
resultVO.setMessage("删除异常");
e.printStackTrace();
}
return resultVO.toString();
}
@RequestMapping(value = "/getprofession", method = { RequestMethod.GET,
RequestMethod.POST }, produces = "application/json; charset=utf-8")
public @ResponseBody String getprofession(
@RequestParam(value = "collegeId", required = true) Integer collegeId,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
ResultVO resultVO = new ResultVO();
try {
List<Profession> professions = professionService.listByCollegeId(collegeId);
resultVO.setData(professions);
resultVO.setSuccess(true);
resultVO.setCode("200");
resultVO.setMessage("删除成功");
} catch (Exception e) {
resultVO.setSuccess(false);
resultVO.setCode("500");
resultVO.setMessage("删除异常");
e.printStackTrace();
}
return resultVO.toString();
}
@RequestMapping(value = "/getadministrativeclass", method = { RequestMethod.GET,
RequestMethod.POST }, produces = "application/json; charset=utf-8")
public @ResponseBody String getadministrativeclass(
@RequestParam(value = "professionId", required = true) Integer professionId,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
ResultVO resultVO = new ResultVO();
try {
List<AdministrativeClass> administrativeClasss = administrativeClassService.listByProfessionId(professionId);
resultVO.setData(administrativeClasss);
resultVO.setSuccess(true);
resultVO.setCode("200");
resultVO.setMessage("删除成功");
} catch (Exception e) {
resultVO.setSuccess(false);
resultVO.setCode("500");
resultVO.setMessage("删除异常");
e.printStackTrace();
}
return resultVO.toString();
}
}
结论
本人在完成本系统的开发设计过程中,通过互联网和各种平台查阅资料以及文献,了解了系统开发设计所需要的理论知识体系。进一步的加强了对软件开发及系统设计的知识积累。通过此次毕业设计的编写,使我觉得在专业知识上还有一定的欠缺,学无止境。对于软件开发所需要的最新技术积极探索,从需求分析,概要设计到最后的系统框架独立完成,这个过程中,自己的分析设计能力以及对系统的开发等方面都有了较大的提升。对系统所实现的功能进行了安全和功能测试。通过测试,系统实现的基础功能良好,基本符合最初设计的要求。