招聘信息管理系统

项目介绍


在当今社会的进步和高科技技术迅猛发展的情况下,知识正在逐步走向主导地位,市场上的竞争大多数是个人才能的竞争。进而,找到一个适宜的人才,是企业能够立足于市场之上并且能够不断与同行企业竞争的一项关键性的任务同时,当今市场环境变化非常之快,导致市场的需求也在不断地变化,那么相应的对人才的需求也在不断的变化。如何快速适应这种变化,提高人才招聘的效率,对企业所需求的人才进行快速定位,也就自然而然成为企业需要考虑的重要因素。
不管是企业的招聘部门,还是中介跨地域提供信息进行介绍,亦或是中介对外的人力资源输出等。在近年来的服务行业中,被服务者即广大用户也应有这方面的需求才行,这样才能到达本系所存在的价值体现。作为中介的另一个服务对象。即供方,也就是求职者,也关注能否迅速获得职位信息以及所要求的条件等。所有的这一切,都展现出了对本系统开发与设计的需求。在当今这个信息时代也只能通过该类型的系统才能实现对人才的合理并且快速的招聘。

关键词


SpringBoot,招聘信息管理,mysql,mybatis

运行环境


1.运行环境:java jdk 1.8
2.IDE环境:IDEA,Eclipse,Myeclipse都可以。推荐Eclipse;
3.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS;
4.数据库:MySql;
5.是否Maven项目:是;

技术栈

  1. 后端:Spring+SpringMVC+Mybatis+Redis
  2. 前端:JSP+LayUI+Echarts+jQuery

运行截图


管理员角色-轮播图管理
管理员-招聘信息管理
管理员-企业信息管理
管理员-求职者管理
管理员-权限管理
管理员-用户管理
管理员-简历管理
企业用户-主页资料设置
企业用户-在线交流
企业用户-留言管理
企业用户-招聘信息发布和管理
企业用户-简历投递速览
求职者-主页
求职者-简历投递情况

代码实现

package com.example.base.controller;

import com.alibaba.fastjson.JSONObject;
import com.example.base.dao.mapper.DBHandler;
import com.example.base.dao.mapper.DictMapper;
import com.example.base.dao.mapper.UserMapper;
import com.example.base.dao.repository.UserRepo;
import com.example.base.entity.User;
import com.example.base.util.ApplicationContextUtil;
import com.example.base.vo.MsgVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import javax.websocket.*;
import javax.websocket.server.PathParam;
import javax.websocket.server.ServerEndpoint;
import java.io.IOException;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;

@Slf4j
@Component
@ServerEndpoint("/groupChat/{sid}/{userId}")
public class WebSocketServerController {
   

    //解决无法注入问题
    private static UserRepo userRepo;

    private static ApplicationContext applicationContext;
    public static void setApplicationContext(ApplicationContext applicationContext) {
   
        userRepo = applicationContext.getBean(UserRepo.class);
    }
    /**
     * 房间号 -> 组成员信息
     */
    private static ConcurrentHashMap<String, List<Session>> groupMemberInfoMap = new ConcurrentHashMap<>();
    /**
     * 房间号 -> 在线人数
     */
    private static ConcurrentHashMap<String, Set<Integer>> onlineUserMap = new ConcurrentHashMap<>();

    /**
     * 收到消息调用的方法,群成员发送消息
     *
     * @param sid:房间号
     * @param userId:用户id
     * @param message:发送消息
     */
    @OnMessage
    public void onMessage(@PathParam("sid") String sid, @PathParam("userId") Integer userId, String message) {
   
        List<Session> sessionList = groupMemberInfoMap.get(sid);
        Set<Integer> onlineUserList = onlineUserMap.get(sid);
        // 先一个群组内的成员发送消息
        sessionList.forEach(item -> {
   
            try {
   
                // json字符串转对象
                MsgVO msg = JSONObject.parseObject(message, MsgVO.class);
                msg.setCount(onlineUserList.size());
                // json对象转字符串
                String text = JSONObject.toJSONString(msg);
                item.getBasicRemote().sendText(text);
            } catch (IOException e) {
   
                e.printStackTrace();
            }
        });
    }

    /**
     * 建立连接调用的方法,群成员加入
     *
     * @param session
     * @param sid
     */
    @OnOpen
    public void onOpen(Session session, @PathParam("sid") String sid, @PathParam("userId") Integer userId) {
   
        List<Session> sessionList = groupMemberInfoMap.computeIfAbsent(sid, k -> new ArrayList<>());
        Set<Integer> onlineUserList = onlineUserMap.computeIfAbsent(sid, k -> new HashSet<>());
        onlineUserList.add(userId);
        sessionList.add(session);
        // 发送上线通知
        sendInfo(sid, userId, onlineUserList.size(), "上线了~");
    }


    public void sendInfo(String sid, Integer userId, Integer onlineSum, String info){
   
        // 获取该连接用户信息
        User currentUser =  userRepo.findById(userId).get();

        // 发送通知
        MsgVO msg = new MsgVO();
        msg.setCount(onlineSum);
        msg.setUserId(userId);
        msg.setAvatar(currentUser.getAvatar());
        msg.setMsg(currentUser.getNickname()+ info);
        // json对象转字符串
        String text = JSONObject.toJSONString(msg
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值