Springboot+vue项目毕业生信息招聘平台

文末获取源码

开发语言:Java

开发工具:IDEA /Eclipse

数据库:MYSQL5.7

应用服务:Tomcat7/Tomcat8

使用框架:springboot+vue

JDK版本:jdk1.8

毕业生信息招聘平台,主要的模块包括查看管理员;首页、个人中心、企业管理、空中宣讲会管理、招聘岗位管理、毕业生管理、个人简历管理、求职信息管理、信息咨询管理、岗位应聘管理、线上面试管理、面试回复管理、试卷管理、试题管理、管理员管理、论坛管理、系统管理、考试管理等功能。系统中管理员主要是为了安全有效地存储和管理各类信息,还可以对系统进行管理与更新维护等操作,并且对后台有相应的操作权限 

系统实现

前台首页功能模块

毕业生信息招聘平台首页、空中宣讲会、招聘岗位、求职信息、论坛信息、试卷列表、招聘资讯、个人中心、后台管理功能。网站首页效果图如图 

 

 登录、毕业生注册,在毕业生注册页面通过填写用户名、密码、姓名、专业、手机、邮箱等信息进行登录、毕业生注册,如图

 

 

招聘岗位,在招聘岗位页面通过填写专业、岗位要求、专业要求、岗位性质等内容进行咨询、应聘,如图 

 

空中宣讲会,在空中宣讲会页面通过填写企业编号、规模、性质、联系人、联系电话、办公地址等信息进行点我收藏,如图 

 

求职信息,在求职信息页面可以查看求职标题、图片、期望职位、期望行业、工作城市、薪资要求等信息并可以进行提交 

 

 

论坛中心

 

试卷列表

 

招聘资讯

 

 管理员功能模块

管理员登录

 

 空中宣讲会管理

招聘岗位管理

 

 毕业生管理

 企业功能模块

 

招聘岗位管理

 

信息咨询管理

 

 线上面试管理

 毕业生功能模块

线上面试管理

 部分核心代码: 

package com.controller;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;

import com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.annotation.IgnoreAuth;

import com.entity.BiyeshengEntity;
import com.entity.view.BiyeshengView;

import com.service.BiyeshengService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MPUtil;
import com.utils.CommonUtil;


/**
 * 毕业生
 * 后端接口
 * @author 
 * @email 
 * @date 2021-01-04 10:02:53
 */
@RestController
@RequestMapping("/biyesheng")
public class BiyeshengController {
    @Autowired
    private BiyeshengService biyeshengService;
    
	@Autowired
	private TokenService tokenService;
	
	/**
	 * 登录
	 */
	@IgnoreAuth
	@RequestMapping(value = "/login")
	public R login(String username, String password, String captcha, HttpServletRequest request) {
		BiyeshengEntity user = biyeshengService.selectOne(new EntityWrapper<BiyeshengEntity>().eq("yonghuming", username));
		if(user==null || !user.getMima().equals(password)) {
			return R.error("账号或密码不正确");
		}
		String token = tokenService.generateToken(user.getId(), username,"biyesheng",  "毕业生" );
		return R.ok().put("token", token);
	}
	
	/**
     * 注册
     */
	@IgnoreAuth
    @RequestMapping("/register")
    public R register(@RequestBody BiyeshengEntity biyesheng){
    	//ValidatorUtils.validateEntity(biyesheng);
    	BiyeshengEntity user = biyeshengService.selectOne(new EntityWrapper<BiyeshengEntity>().eq("yonghuming", biyesheng.getYonghuming()));
		if(user!=null) {
			return R.error("注册用户已存在");
		}
		Long uId = new Date().getTime();
		biyesheng.setId(uId);
        biyeshengService.insert(biyesheng);
        return R.ok();
    }
	
	/**
	 * 退出
	 */
	@RequestMapping("/logout")
	public R logout(HttpServletRequest request) {
		request.getSession().invalidate();
		return R.ok("退出成功");
	}
	
	/**
     * 获取用户的session用户信息
     */
    @RequestMapping("/session")
    public R getCurrUser(HttpServletRequest request){
    	Long id = (Long)request.getSession().getAttribute("userId");
        BiyeshengEntity user = biyeshengService.selectById(id);
        return R.ok().put("data", user);
    }
    
    /**
     * 密码重置
     */
    @IgnoreAuth
	@RequestMapping(value = "/resetPass")
    public R resetPass(String username, HttpServletRequest request){
    	BiyeshengEntity user = biyeshengService.selectOne(new EntityWrapper<BiyeshengEntity>().eq("yonghuming", username));
    	if(user==null) {
    		return R.error("账号不存在");
    	}
    	user.setMima("123456");
        biyeshengService.updateById(user);
        return R.ok("密码已重置为:123456");
    }


    /**
     * 后端列表
     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params,BiyeshengEntity biyesheng, HttpServletRequest request){
        EntityWrapper<BiyeshengEntity> ew = new EntityWrapper<BiyeshengEntity>();
		PageUtils page = biyeshengService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, biyesheng), params), params));

        return R.ok().put("data", page);
    }
    
    /**
     * 前端列表
     */
    @RequestMapping("/list")
    public R list(@RequestParam Map<String, Object> params,BiyeshengEntity biyesheng, HttpServletRequest request){
        EntityWrapper<BiyeshengEntity> ew = new EntityWrapper<BiyeshengEntity>();
		PageUtils page = biyeshengService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, biyesheng), params), params));
        return R.ok().put("data", page);
    }

	/**
     * 列表
     */
    @RequestMapping("/lists")
    public R list( BiyeshengEntity biyesheng){
       	EntityWrapper<BiyeshengEntity> ew = new EntityWrapper<BiyeshengEntity>();
      	ew.allEq(MPUtil.allEQMapPre( biyesheng, "biyesheng")); 
        return R.ok().put("data", biyeshengService.selectListView(ew));
    }

	 /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(BiyeshengEntity biyesheng){
        EntityWrapper< BiyeshengEntity> ew = new EntityWrapper< BiyeshengEntity>();
 		ew.allEq(MPUtil.allEQMapPre( biyesheng, "biyesheng")); 
		BiyeshengView biyeshengView =  biyeshengService.selectView(ew);
		return R.ok("查询毕业生成功").put("data", biyeshengView);
    }
	
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") String id){
        BiyeshengEntity biyesheng = biyeshengService.selectById(id);
        return R.ok().put("data", biyesheng);
    }

    /**
     * 前端详情
     */
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") String id){
        BiyeshengEntity biyesheng = biyeshengService.selectById(id);
        return R.ok().put("data", biyesheng);
    }
    



    /**
     * 后端保存
     */
    @RequestMapping("/save")
    public R save(@RequestBody BiyeshengEntity biyesheng, HttpServletRequest request){
    	biyesheng.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(biyesheng);
    	BiyeshengEntity user = biyeshengService.selectOne(new EntityWrapper<BiyeshengEntity>().eq("yonghuming", biyesheng.getYonghuming()));
		if(user!=null) {
			return R.error("用户已存在");
		}
		biyesheng.setId(new Date().getTime());
        biyeshengService.insert(biyesheng);
        return R.ok();
    }
    
    /**
     * 前端保存
     */
    @RequestMapping("/add")
    public R add(@RequestBody BiyeshengEntity biyesheng, HttpServletRequest request){
    	biyesheng.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(biyesheng);
    	BiyeshengEntity user = biyeshengService.selectOne(new EntityWrapper<BiyeshengEntity>().eq("yonghuming", biyesheng.getYonghuming()));
		if(user!=null) {
			return R.error("用户已存在");
		}
		biyesheng.setId(new Date().getTime());
        biyeshengService.insert(biyesheng);
        return R.ok();
    }

    /**
     * 修改
     */
    @RequestMapping("/update")
    public R update(@RequestBody BiyeshengEntity biyesheng, HttpServletRequest request){
        //ValidatorUtils.validateEntity(biyesheng);
        biyeshengService.updateById(biyesheng);//全部更新
        return R.ok();
    }
    

    /**
     * 删除
     */
    @RequestMapping("/delete")
    public R delete(@RequestBody Long[] ids){
        biyeshengService.deleteBatchIds(Arrays.asList(ids));
        return R.ok();
    }
    
    /**
     * 提醒接口
     */
	@RequestMapping("/remind/{columnName}/{type}")
	public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request, 
						 @PathVariable("type") String type,@RequestParam Map<String, Object> map) {
		map.put("column", columnName);
		map.put("type", type);
		
		if(type.equals("2")) {
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
			Calendar c = Calendar.getInstance();
			Date remindStartDate = null;
			Date remindEndDate = null;
			if(map.get("remindstart")!=null) {
				Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
				c.setTime(new Date()); 
				c.add(Calendar.DAY_OF_MONTH,remindStart);
				remindStartDate = c.getTime();
				map.put("remindstart", sdf.format(remindStartDate));
			}
			if(map.get("remindend")!=null) {
				Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
				c.setTime(new Date());
				c.add(Calendar.DAY_OF_MONTH,remindEnd);
				remindEndDate = c.getTime();
				map.put("remindend", sdf.format(remindEndDate));
			}
		}
		
		Wrapper<BiyeshengEntity> wrapper = new EntityWrapper<BiyeshengEntity>();
		if(map.get("remindstart")!=null) {
			wrapper.ge(columnName, map.get("remindstart"));
		}
		if(map.get("remindend")!=null) {
			wrapper.le(columnName, map.get("remindend"));
		}


		int count = biyeshengService.selectCount(wrapper);
		return R.ok().put("count", count);
	}
	


}

猜你喜欢

转载自blog.csdn.net/m0_49113107/article/details/123776531