Java项目:110SpringBoot Vue的就业信息管理系统

本文详细介绍了基于SpringBoot和Vue的就业信息管理系统,包含管理员、用户前台功能以及后台管理模块,如招聘信息、交流论坛等,适合Java学习者用于项目实战和毕设演示。
摘要由CSDN通过智能技术生成
作者主页:夜未央5788

 简介:Java领域优质创作者、Java项目、学习资料、技术互助

文末获取源码

项目介绍

基于SpringBoot Vue的就业信息管理系统

角色:管理员、用户

前台功能:进入系统可以实现首页,招聘信息,交流论坛,公告资讯,个人中心,后台管理等功能进行操作。

后台由管理员,学生,企业和导师,主要功能包括首页,个人中心,学生管理,导师管理,企业管理,招聘信息管理,应聘信息管理,面试邀请管理,就业指导管理,交流论坛,系统管理等。

使用人群:
正在做毕设的学生,或者需要项目实战练习的Java学习者

由于本程序规模不大,可供课程设计,毕业设计学习演示之用

环境需要

1.运行环境:最好是java jdk 1.8,我们在这个平台上运行的。其他版本理论上也可以。
2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐IDEA;
3.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS; 
4.数据库:MySql 5.7/8.0版本均可;

5.是否Maven项目:是;

技术栈

后端: SpringBoot+Mybaits

前端:layui +Vue +ELementUI

使用说明

项目运行:
1. 使用Navicat或者其它工具,在mysql中创建对应sql文件名称的数据库,并导入项目的sql文件;
2. 使用IDEA/Eclipse/MyEclipse导入项目,导入成功后请执行maven clean;maven install命令,然后运行;
3. 将项目中application.yml配置文件中的数据库配置改为自己的配置;
4. 运行项目,前台访问地址:
http://localhost:8080/springboote71hf/front/index.html
后台访问地址:
http://localhost:8080/springboote71hf/admin/dist/index.html
管理员用户名密码:abo/abo
学生用户名密码:学生账号1/123456
导师用户名密码:导师账号1/123456

企业用户名密码:企业账号1/123456

运行截图

论文

前台界面

后台界面

相关代码

JiuyezhidaoController

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.transaction.annotation.Transactional;
import org.springframework.format.annotation.DateTimeFormat;
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.JiuyezhidaoEntity;
import com.entity.view.JiuyezhidaoView;

import com.service.JiuyezhidaoService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
import java.io.IOException;

/**
 * 就业指导
 * 后端接口
 * @author 
 * @email 
 * @date 2022-05-03 18:24:13
 */
@RestController
@RequestMapping("/jiuyezhidao")
public class JiuyezhidaoController {
    @Autowired
    private JiuyezhidaoService jiuyezhidaoService;


    


    /**
     * 后端列表
     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params,JiuyezhidaoEntity jiuyezhidao,
		HttpServletRequest request){
		String tableName = request.getSession().getAttribute("tableName").toString();
		if(tableName.equals("daoshi")) {
			jiuyezhidao.setDaoshizhanghao((String)request.getSession().getAttribute("username"));
		}
		if(tableName.equals("xuesheng")) {
			jiuyezhidao.setXueshengzhanghao((String)request.getSession().getAttribute("username"));
		}
        EntityWrapper<JiuyezhidaoEntity> ew = new EntityWrapper<JiuyezhidaoEntity>();
		PageUtils page = jiuyezhidaoService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, jiuyezhidao), params), params));

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

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

	 /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(JiuyezhidaoEntity jiuyezhidao){
        EntityWrapper< JiuyezhidaoEntity> ew = new EntityWrapper< JiuyezhidaoEntity>();
 		ew.allEq(MPUtil.allEQMapPre( jiuyezhidao, "jiuyezhidao")); 
		JiuyezhidaoView jiuyezhidaoView =  jiuyezhidaoService.selectView(ew);
		return R.ok("查询就业指导成功").put("data", jiuyezhidaoView);
    }
	
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        JiuyezhidaoEntity jiuyezhidao = jiuyezhidaoService.selectById(id);
        return R.ok().put("data", jiuyezhidao);
    }

    /**
     * 前端详情
     */
	@IgnoreAuth
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") Long id){
        JiuyezhidaoEntity jiuyezhidao = jiuyezhidaoService.selectById(id);
        return R.ok().put("data", jiuyezhidao);
    }
    



    /**
     * 后端保存
     */
    @RequestMapping("/save")
    public R save(@RequestBody JiuyezhidaoEntity jiuyezhidao, HttpServletRequest request){
    	jiuyezhidao.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(jiuyezhidao);
        jiuyezhidaoService.insert(jiuyezhidao);
        return R.ok();
    }
    
    /**
     * 前端保存
     */
    @RequestMapping("/add")
    public R add(@RequestBody JiuyezhidaoEntity jiuyezhidao, HttpServletRequest request){
    	jiuyezhidao.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(jiuyezhidao);
        jiuyezhidaoService.insert(jiuyezhidao);
        return R.ok();
    }

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

    /**
     * 删除
     */
    @RequestMapping("/delete")
    public R delete(@RequestBody Long[] ids){
        jiuyezhidaoService.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<JiuyezhidaoEntity> wrapper = new EntityWrapper<JiuyezhidaoEntity>();
		if(map.get("remindstart")!=null) {
			wrapper.ge(columnName, map.get("remindstart"));
		}
		if(map.get("remindend")!=null) {
			wrapper.le(columnName, map.get("remindend"));
		}

		String tableName = request.getSession().getAttribute("tableName").toString();
		if(tableName.equals("daoshi")) {
			wrapper.eq("daoshizhanghao", (String)request.getSession().getAttribute("username"));
		}
		if(tableName.equals("xuesheng")) {
			wrapper.eq("xueshengzhanghao", (String)request.getSession().getAttribute("username"));
		}

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







}

MianshiyaoqingController

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.transaction.annotation.Transactional;
import org.springframework.format.annotation.DateTimeFormat;
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.MianshiyaoqingEntity;
import com.entity.view.MianshiyaoqingView;

import com.service.MianshiyaoqingService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;
import java.io.IOException;

/**
 * 面试邀请
 * 后端接口
 * @author 
 * @email 
 * @date 2022-05-03 18:24:13
 */
@RestController
@RequestMapping("/mianshiyaoqing")
public class MianshiyaoqingController {
    @Autowired
    private MianshiyaoqingService mianshiyaoqingService;


    


    /**
     * 后端列表
     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params,MianshiyaoqingEntity mianshiyaoqing,
		HttpServletRequest request){
		String tableName = request.getSession().getAttribute("tableName").toString();
		if(tableName.equals("qiye")) {
			mianshiyaoqing.setQiyezhanghao((String)request.getSession().getAttribute("username"));
		}
		if(tableName.equals("xuesheng")) {
			mianshiyaoqing.setXueshengzhanghao((String)request.getSession().getAttribute("username"));
		}
        EntityWrapper<MianshiyaoqingEntity> ew = new EntityWrapper<MianshiyaoqingEntity>();
		PageUtils page = mianshiyaoqingService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, mianshiyaoqing), params), params));

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

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

	 /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(MianshiyaoqingEntity mianshiyaoqing){
        EntityWrapper< MianshiyaoqingEntity> ew = new EntityWrapper< MianshiyaoqingEntity>();
 		ew.allEq(MPUtil.allEQMapPre( mianshiyaoqing, "mianshiyaoqing")); 
		MianshiyaoqingView mianshiyaoqingView =  mianshiyaoqingService.selectView(ew);
		return R.ok("查询面试邀请成功").put("data", mianshiyaoqingView);
    }
	
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        MianshiyaoqingEntity mianshiyaoqing = mianshiyaoqingService.selectById(id);
        return R.ok().put("data", mianshiyaoqing);
    }

    /**
     * 前端详情
     */
	@IgnoreAuth
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") Long id){
        MianshiyaoqingEntity mianshiyaoqing = mianshiyaoqingService.selectById(id);
        return R.ok().put("data", mianshiyaoqing);
    }
    



    /**
     * 后端保存
     */
    @RequestMapping("/save")
    public R save(@RequestBody MianshiyaoqingEntity mianshiyaoqing, HttpServletRequest request){
    	mianshiyaoqing.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(mianshiyaoqing);
        mianshiyaoqingService.insert(mianshiyaoqing);
        return R.ok();
    }
    
    /**
     * 前端保存
     */
    @RequestMapping("/add")
    public R add(@RequestBody MianshiyaoqingEntity mianshiyaoqing, HttpServletRequest request){
    	mianshiyaoqing.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(mianshiyaoqing);
        mianshiyaoqingService.insert(mianshiyaoqing);
        return R.ok();
    }

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

    /**
     * 删除
     */
    @RequestMapping("/delete")
    public R delete(@RequestBody Long[] ids){
        mianshiyaoqingService.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<MianshiyaoqingEntity> wrapper = new EntityWrapper<MianshiyaoqingEntity>();
		if(map.get("remindstart")!=null) {
			wrapper.ge(columnName, map.get("remindstart"));
		}
		if(map.get("remindend")!=null) {
			wrapper.le(columnName, map.get("remindend"));
		}

		String tableName = request.getSession().getAttribute("tableName").toString();
		if(tableName.equals("qiye")) {
			wrapper.eq("qiyezhanghao", (String)request.getSession().getAttribute("username"));
		}
		if(tableName.equals("xuesheng")) {
			wrapper.eq("xueshengzhanghao", (String)request.getSession().getAttribute("username"));
		}

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







}

如果也想学习本系统,下面领取。关注并回复:110springboot

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

夜未央5788

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值