大家好!我是程序猿老A,感谢您阅读本文,欢迎一键三连哦。
💞当前专栏:Java毕业设计
精彩专栏推荐👇🏻👇🏻👇🏻
开发环境
- 开发语言:Java
- 框架:ssm
- JDK版本:JDK1.8
- 服务器:tomcat7
- 数据库:mysql 5.7
- 数据库工具:Navicat12
- 开发软件:eclipse/myeclipse/idea
- Maven包:Maven3.3.9
- 浏览器:谷歌浏览器
源码下载地址:
https://download.csdn.net/download/2301_76953549/89298630
论文目录
【如需全文请按文末获取联系】
一、项目简介
线上招聘问答系统管理数据的工具是MySQL,编码的语言是Java,运用的框架是SSM框架。该系统可以实现简历管理,论坛帖子管理,职位招聘管理,职位招聘留言管理,招聘岗位管理,所在行业管理,求职意向管理等功能。
二、系统设计
2.1软件功能模块设计
对管理员具体功能的设计结果将以图4.1所示的管理员功能结构图来进行体现。管理员对于线上招聘问答系统操作的功能包括管理公司和用户以及论坛帖子信息,管理招聘岗位,求职意向以及职位招聘信息等。
对公司具体功能的设计结果将以图4.2所示的公司功能结构图来进行体现。公司对于线上招聘问答系统操作的功能包括增删改查职位招聘信息,回复职位招聘留言,查看用户简历,管理论坛帖子等。
对用户具体功能的设计结果将以图4.3所示的用户功能结构图来进行体现。用户对于线上招聘问答系统操作的功能包括查看职位招聘信息,对职位招聘发布留言,查看论坛帖子,评论查看的帖子,查看公司简介,管理个人简历等。
2.2数据库设计
(1)公司包括的属性有公司名称,所在行业,联系方式,公司简介等。其属性图如下。
(2)简历包括的属性有期望工资,工作经历,教育经历,简历名称等。其属性图如下。
(3)职位招聘包括的属性有薪资待遇,上班地点,联系人等。其属性图如下。
(5)设计的各实体间关系E-R图如下。
三、系统项目部分截图
3.1管理员功能实现
公司管理
该功能主要用于实现对公司基本信息的管理,公司管理界面的运行效果见图5.1。在此界面,管理员查看公司所在行业,公司的联系方式等信息,公司信息存在错误数据,也需要管理员及时更改,当公司信息失效之后,管理员就需要及时删除。
招聘岗位管理
该功能主要用于实现对招聘岗位基本信息的管理,招聘岗位管理界面的运行效果见图5.2。在此界面,管理员对招聘岗位信息的招聘岗位名称进行登记。对招聘岗位名称存在错误数据的信息进行修改,以及使用删除功能对需要删除的招聘岗位信息进行删除等。
3.2公司功能实现
简历查看
简历查看界面的运行效果见图5.4。在此界面,公司查看用户简历,包括查看用户学历,期望工资,位置,教育经历,个人介绍等相关信息,查询简历的时候,需要公司选择查询条件来查询用户简历,如果选择根据学历查询,那么需要公司在学历旁边的查询编辑框中登记学历信息,然后点击查询按钮进行简历查询。
职位招聘管理
该功能主要用于实现对职位招聘基本信息的管理,职位招聘管理界面的运行效果见图5.5。在此界面,公司需要发布职位招聘信息,对职位招聘信息的薪资待遇,上班地点,联系人,招聘岗位等信息需要认真登记,如果存在数据登记错误的情况,也能在后期使用修改功能及时更正,公司如果不需要对职位进行招聘时,可以下架职位招聘,也能删除职位招聘信息等。
3.3用户功能实现
职位招聘
职位招聘界面的运行效果见图5.7。在此界面,用户可以查看职位招聘界面右侧区域展示的系统推荐信息,用户也能查看职位招聘的详细介绍信息,以及在职位招聘界面下方的留言区域发布职位招聘留言。
简历管理
简历管理界面的运行效果见图5.9。在此界面,用户主要对个人简历进行管理,包括新增个人简历,对个人简历的工作经历,照片等内容进行更新,或者对需要删除的个人简历及时删除等。
四、部分核心代码
package com.controller;
import java.io.File;
import java.math.BigDecimal;
import java.net.URL;
import java.text.SimpleDateFormat;
import com.alibaba.fastjson.JSONObject;
import java.util.*;
import org.springframework.beans.BeanUtils;
import javax.servlet.http.HttpServletRequest;
import org.springframework.web.context.ContextLoader;
import javax.servlet.ServletContext;
import com.service.TokenService;
import com.utils.*;
import java.lang.reflect.InvocationTargetException;
import com.service.DictionaryService;
import org.apache.commons.lang3.StringUtils;
import com.annotation.IgnoreAuth;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.entity.*;
import com.entity.view.*;
import com.service.*;
import com.utils.PageUtils;
import com.utils.R;
import com.alibaba.fastjson.*;
/**
* 简历投递
* 后端接口
* @author
* @email
*/
@RestController
@Controller
@RequestMapping("/toudi")
public class ToudiController {
private static final Logger logger = LoggerFactory.getLogger(ToudiController.class);
@Autowired
private ToudiService toudiService;
@Autowired
private TokenService tokenService;
@Autowired
private DictionaryService dictionaryService;
//级联表service
@Autowired
private JianliService jianliService;
@Autowired
private ZhaopinService zhaopinService;
@Autowired
private YonghuService yonghuService;
@Autowired
private GongsiService gongsiService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params, HttpServletRequest request){
logger.debug("page方法:,,Controller:{},,params:{}",this.getClass().getName(),JSONObject.toJSONString(params));
String role = String.valueOf(request.getSession().getAttribute("role"));
if(false)
return R.error(511,"永不会进入");
else if("用户".equals(role))
params.put("yonghuId",request.getSession().getAttribute("userId"));
else if("公司".equals(role))
params.put("gongsiId",request.getSession().getAttribute("userId"));
if(params.get("orderBy")==null || params.get("orderBy")==""){
params.put("orderBy","id");
}
PageUtils page = toudiService.queryPage(params);
//字典表数据转换
List<ToudiView> list =(List<ToudiView>)page.getList();
for(ToudiView c:list){
//修改对应字典表字段
dictionaryService.dictionaryConvert(c, request);
}
return R.ok().put("data", page);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id, HttpServletRequest request){
logger.debug("info方法:,,Controller:{},,id:{}",this.getClass().getName(),id);
ToudiEntity toudi = toudiService.selectById(id);
if(toudi !=null){
//entity转view
ToudiView view = new ToudiView();
BeanUtils.copyProperties( toudi , view );//把实体数据重构到view中
//级联表
JianliEntity jianli = jianliService.selectById(toudi.getJianliId());
if(jianli != null){
BeanUtils.copyProperties( jianli , view ,new String[]{ "id", "createTime", "insertTime", "updateTime"});//把级联的数据添加到view中,并排除id和创建时间字段
view.setJianliId(jianli.getId());
}
//级联表
ZhaopinEntity zhaopin = zhaopinService.selectById(toudi.getZhaopinId());
if(zhaopin != null){
BeanUtils.copyProperties( zhaopin , view ,new String[]{ "id", "createTime", "insertTime", "updateTime"});//把级联的数据添加到view中,并排除id和创建时间字段
view.setZhaopinId(zhaopin.getId());
}
//修改对应字典表字段
dictionaryService.dictionaryConvert(view, request);
return R.ok().put("data", view);
}else {
return R.error(511,"查不到数据");
}
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody ToudiEntity toudi, HttpServletRequest request){
logger.debug("save方法:,,Controller:{},,toudi:{}",this.getClass().getName(),toudi.toString());
String role = String.valueOf(request.getSession().getAttribute("role"));
if(false)
return R.error(511,"永远不会进入");
Wrapper<ToudiEntity> queryWrapper = new EntityWrapper<ToudiEntity>()
.eq("jianli_id", toudi.getJianliId())
.eq("zhaopin_id", toudi.getZhaopinId())
.eq("toudi_yesno_types", toudi.getToudiYesnoTypes())
.eq("toudi_yesno_text", toudi.getToudiYesnoText())
;
logger.info("sql语句:"+queryWrapper.getSqlSegment());
ToudiEntity toudiEntity = toudiService.selectOne(queryWrapper);
if(toudiEntity==null){
toudi.setToudiYesnoTypes(1);
toudi.setInsertTime(new Date());
toudi.setCreateTime(new Date());
toudiService.insert(toudi);
return R.ok();
}else {
return R.error(511,"表中有相同数据");
}
}
/**
* 后端修改
*/
@RequestMapping("/update")
public R update(@RequestBody ToudiEntity toudi, HttpServletRequest request){
logger.debug("update方法:,,Controller:{},,toudi:{}",this.getClass().getName(),toudi.toString());
String role = String.valueOf(request.getSession().getAttribute("role"));
// if(false)
// return R.error(511,"永远不会进入");
//根据字段查询是否有相同数据
Wrapper<ToudiEntity> queryWrapper = new EntityWrapper<ToudiEntity>()
.notIn("id",toudi.getId())
.andNew()
.eq("jianli_id", toudi.getJianliId())
.eq("zhaopin_id", toudi.getZhaopinId())
.eq("toudi_yesno_types", toudi.getToudiYesnoTypes())
.eq("toudi_yesno_text", toudi.getToudiYesnoText())
.eq("insert_time", toudi.getInsertTime())
;
logger.info("sql语句:"+queryWrapper.getSqlSegment());
ToudiEntity toudiEntity = toudiService.selectOne(queryWrapper);
if("".equals(toudi.getZhaopinFile()) || "null".equals(toudi.getZhaopinFile())){
toudi.setZhaopinFile(null);
}
if(toudiEntity==null){
toudiService.updateById(toudi);//根据id更新
return R.ok();
}else {
return R.error(511,"表中有相同数据");
}
}
/**
* 审核
*/
@RequestMapping("/shenhe")
public R shenhe(@RequestBody ToudiEntity toudi, HttpServletRequest request){
logger.debug("shenhe方法:,,Controller:{},,toudi:{}",this.getClass().getName(),toudi.toString());
// if(toudi.getToudiYesnoTypes() == 2){//通过
// toudi.setToudiTypes();
// }else if(toudi.getToudiYesnoTypes() == 3){//拒绝
// toudi.setToudiTypes();
// }
toudiService.updateById(toudi);//审核
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Integer[] ids){
logger.debug("delete:,,Controller:{},,ids:{}",this.getClass().getName(),ids.toString());
toudiService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}
/**
* 批量上传
*/
@RequestMapping("/batchInsert")
public R save( String fileName, HttpServletRequest request){
logger.debug("batchInsert方法:,,Controller:{},,fileName:{}",this.getClass().getName(),fileName);
Integer yonghuId = Integer.valueOf(String.valueOf(request.getSession().getAttribute("userId")));
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
try {
List<ToudiEntity> toudiList = new ArrayList<>();//上传的东西
Map<String, List<String>> seachFields= new HashMap<>();//要查询的字段
Date date = new Date();
int lastIndexOf = fileName.lastIndexOf(".");
if(lastIndexOf == -1){
return R.error(511,"该文件没有后缀");
}else{
String suffix = fileName.substring(lastIndexOf);
if(!".xls".equals(suffix)){
return R.error(511,"只支持后缀为xls的excel文件");
}else{
URL resource = this.getClass().getClassLoader().getResource("../../upload/" + fileName);//获取文件路径
File file = new File(resource.getFile());
if(!file.exists()){
return R.error(511,"找不到上传文件,请联系管理员");
}else{
List<List<String>> dataList = PoiUtil.poiImport(file.getPath());//读取xls文件
dataList.remove(0);//删除第一行,因为第一行是提示
for(List<String> data:dataList){
//循环
ToudiEntity toudiEntity = new ToudiEntity();
// toudiEntity.setJianliId(Integer.valueOf(data.get(0))); //简历 要改的
// toudiEntity.setZhaopinId(Integer.valueOf(data.get(0))); //招聘 要改的
// toudiEntity.setZhaopinFile(data.get(0)); //申请表 要改的
// toudiEntity.setToudiYesnoTypes(Integer.valueOf(data.get(0))); //审核结果 要改的
// toudiEntity.setToudiYesnoText(data.get(0)); //审核原因 要改的
// toudiEntity.setInsertTime(date);//时间
// toudiEntity.setCreateTime(date);//时间
toudiList.add(toudiEntity);
//把要查询是否重复的字段放入map中
}
//查询是否重复
toudiService.insertBatch(toudiList);
return R.ok();
}
}
}
}catch (Exception e){
e.printStackTrace();
return R.error(511,"批量插入数据异常,请联系管理员");
}
}
/**
* 前端列表
*/
@IgnoreAuth
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params, HttpServletRequest request){
logger.debug("list方法:,,Controller:{},,params:{}",this.getClass().getName(),JSONObject.toJSONString(params));
// 没有指定排序字段就默认id倒序
if(StringUtil.isEmpty(String.valueOf(params.get("orderBy")))){
params.put("orderBy","id");
}
PageUtils page = toudiService.queryPage(params);
//字典表数据转换
List<ToudiView> list =(List<ToudiView>)page.getList();
for(ToudiView c:list)
dictionaryService.dictionaryConvert(c, request); //修改对应字典表字段
return R.ok().put("data", page);
}
/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id, HttpServletRequest request){
logger.debug("detail方法:,,Controller:{},,id:{}",this.getClass().getName(),id);
ToudiEntity toudi = toudiService.selectById(id);
if(toudi !=null){
//entity转view
ToudiView view = new ToudiView();
BeanUtils.copyProperties( toudi , view );//把实体数据重构到view中
//级联表
JianliEntity jianli = jianliService.selectById(toudi.getJianliId());
if(jianli != null){
BeanUtils.copyProperties( jianli , view ,new String[]{ "id", "createDate"});//把级联的数据添加到view中,并排除id和创建时间字段
view.setJianliId(jianli.getId());
}
//级联表
ZhaopinEntity zhaopin = zhaopinService.selectById(toudi.getZhaopinId());
if(zhaopin != null){
BeanUtils.copyProperties( zhaopin , view ,new String[]{ "id", "createDate"});//把级联的数据添加到view中,并排除id和创建时间字段
view.setZhaopinId(zhaopin.getId());
}
//修改对应字典表字段
dictionaryService.dictionaryConvert(view, request);
return R.ok().put("data", view);
}else {
return R.error(511,"查不到数据");
}
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody ToudiEntity toudi, HttpServletRequest request){
logger.debug("add方法:,,Controller:{},,toudi:{}",this.getClass().getName(),toudi.toString());
Wrapper<ToudiEntity> queryWrapper = new EntityWrapper<ToudiEntity>()
.eq("jianli_id", toudi.getJianliId())
.eq("zhaopin_id", toudi.getZhaopinId())
.eq("toudi_yesno_types", toudi.getToudiYesnoTypes())
.eq("toudi_yesno_text", toudi.getToudiYesnoText())
;
logger.info("sql语句:"+queryWrapper.getSqlSegment());
ToudiEntity toudiEntity = toudiService.selectOne(queryWrapper);
if(toudiEntity==null){
toudi.setToudiYesnoTypes(1);
toudi.setInsertTime(new Date());
toudi.setCreateTime(new Date());
toudiService.insert(toudi);
return R.ok();
}else {
return R.error(511,"表中有相同数据");
}
}
}
获取源码或论文
如需对应的论文或源码,以及其他定制需求,也可以下方微❤联系。