Javaweb人才招聘系统[通俗易懂]

Javaweb人才招聘系统[通俗易懂]基于JSP的JSP+MYSQL人才招聘系统hrm系统是一个综合的员工管理系统,系统主页面左边由导航树构成,分为:部门管理、员工管理、招聘管理、培训管理、薪资管理、以及系统设置模块,模块功能主要包含CRUD操作,详情查看等操作。后台管理具体描述如下:网站新闻资讯管理|–添加新闻资讯;|–修改新闻资讯;|–删除新闻资讯个人会员管理|–查看个人会员|–删除个人会员企业会员管理|–查看企业会员|–删除企业会员在线留言管理|–查看在线留言|–删除在线留言系统用户管理|–系统用户的录

大家好,又见面了,我是你们的朋友全栈君。

基于JSP的JSP+MYSQL人才招聘系统hrm系统是一个综合的员工管理系统,系统主页面左边由导航树构成,分为:部门管理、员工管理、招聘管理、培训管理、薪资管理、以及系统设置模块,
模块功能主要包含CRUD操作,详情查看等操作。

后台管理具体描述如下:网站新闻资讯管理|–添加新闻资讯;|–修改新闻资讯;|–删除新闻资讯个人会员管理|–查看个人会员|–删除个人会员企业会员管理|–查看企业会员|–删除企业会员在线留言管理|–查看在线留言|–删除在线留言

系统用户管理

|–系统用户的录入,包括用户名、密码等信息|–修改自己的密码|–用户信息查看|–登录日志查看 招聘信息管理求职信息管理求职信息审核

个人会员

|–注册个人用户|–个人用户修改自己的密码|–个人用户发布自己的求职信息|–个人用户修改自己的求职信息|–个人用户上传自己的照片|–发送求职申请和个人简历|–接收用人单位的面试通知

企业会员|–注册企业用户|–企业用户修改自己的密码|–企业用户发布自己的招聘信息|–企业用户修改自己的招聘信息|–企业用户向求职者发送面试通知|–为所有求职人员设置人才库数据库(hibernate 的c3p0连接数据库使用说明) 

Javaweb人才招聘系统[通俗易懂]

Javaweb人才招聘系统[通俗易懂]

Javaweb人才招聘系统[通俗易懂]

Javaweb人才招聘系统[通俗易懂]

Javaweb人才招聘系统[通俗易懂]

Javaweb人才招聘系统[通俗易懂]

Javaweb人才招聘系统[通俗易懂]

Javaweb人才招聘系统[通俗易懂]

Javaweb人才招聘系统[通俗易懂]

Javaweb人才招聘系统[通俗易懂]

Javaweb人才招聘系统[通俗易懂]

Javaweb人才招聘系统[通俗易懂]

Javaweb人才招聘系统[通俗易懂]

Javaweb人才招聘系统[通俗易懂]

Javaweb人才招聘系统[通俗易懂]

Javaweb人才招聘系统[通俗易懂]

Javaweb人才招聘系统[通俗易懂]

Javaweb人才招聘系统[通俗易懂]

Javaweb人才招聘系统[通俗易懂]

 

 

com.mysql.jdbc.Driver
jdbc:mysql://localhost:3306/hrm
root
123456
true
true
org.hibernate.dialect.MySQL5Dialect   
org.springframework.orm.hibernate4.SpringSessionContext “

package com.csl.controller;

import com.alibaba.fastjson.JSON;
import com.csl.domain.*;
import com.csl.serviceImpl.GoodsServiceImpl;
import com.csl.serviceImpl.ImageServiceImpl;
import com.csl.serviceImpl.UserServiceImpl;
import com.google.gson.Gson;
import com.qiniu.common.QiniuException;
import com.qiniu.common.Zone;
import com.qiniu.http.Response;
import com.qiniu.storage.Configuration;
import com.qiniu.storage.UploadManager;
import com.qiniu.storage.model.DefaultPutRet;
import com.qiniu.util.Auth;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.servlet.ModelAndView;

import java.io.File;
import java.io.UnsupportedEncodingException;
import java.util.List;
import java.util.UUID;

/**
 * Created by csl on 2017/4/18.
 */
@Controller
@RequestMapping(value = “/goods”)
public class GoodsController {

    @Autowired
    private GoodsServiceImpl goodsService;
    @Autowired
    private UserServiceImpl userService;
    @Autowired
    private ImageServiceImpl imageService;

    private String imageUrl = “”;

    @RequestMapping(value = “/goodsSpecific/{goodsID}&{userID}”, method = RequestMethod.GET)
    public ModelAndView goodsSpecific(@PathVariable(“goodsID”) String goodsID, @PathVariable String userID) {

        GoodsDO goodsDO = this.goodsService.getByID(goodsID, userID);
        UserDO userDO = this.userService.getOwner(goodsID);
        ModelAndView modelAndView = new ModelAndView(“GoodsSpecific”);
        modelAndView.addObject(“goods”, goodsDO);
        modelAndView.addObject(“user”, userDO);
        return modelAndView;
    }

    @RequestMapping(value = “/attentionGoods”, method = RequestMethod.POST)
    @ResponseBody
    public int attentionGoods(String goodsID, String userID, boolean isAttention) {

        try {

            if (isAttention) {

                this.goodsService.attentionGoods(userID, goodsID);
                return 1;
            } else {

                this.goodsService.removeAttention(userID, goodsID);
                return 2;
            }
        } catch (Exception exception) {

        }
        return -1;
    }

    @RequestMapping(value = “/getTop5”, method = RequestMethod.GET)
    @ResponseBody
    public List<GoodsDO> getTop5(String userID) {

        return this.goodsService.getTop5(userID);
    }

    @RequestMapping(value = “/viewCollection”, method = RequestMethod.GET)
    public ModelAndView viewCollection() {

        return new ModelAndView(“UserCollection”);
    }

    @RequestMapping(value = “/getCollection”)
    @ResponseBody
    public List<GoodsDO> getCollection(String userID) {

        return this.goodsService.getGoodsByUserID(userID, ActionPage.attention);
    }

    @RequestMapping(value = “/viewRepository”, method = RequestMethod.GET)
    public ModelAndView viewRepository() {

        return new ModelAndView(“GoodsRepository”);
    }

    @RequestMapping(value = “/getRepository”, method = RequestMethod.GET)
    @ResponseBody
    public List<GoodsDO> getRepository(String userID) {

        return this.goodsService.getGoodsByUserID(userID, ActionPage.own);
    }

    @RequestMapping(value = “/editGoods/{goodsID}”, method = RequestMethod.GET)
    public ModelAndView editGoods(@PathVariable String goodsID) {

        GoodsDO goodsDO = this.goodsService.find(goodsID);
        ModelAndView modelAndView = new ModelAndView(“GoodsEdit”);
        modelAndView.addObject(“goods”, goodsDO);
        modelAndView.addObject(“pageType”, “edit”);
        return modelAndView;
    }

    @RequestMapping(value = “/update”, method = RequestMethod.GET)
    @ResponseBody
    public boolean update(String goodsJSON) {

        GoodsDO goodsDO = JSON.parseObject(goodsJSON, GoodsDO.class);
        if (goodsDO.getImageUrl() == “”) {

            goodsDO.setImageUrl(this.imageUrl);
        }
        return this.goodsService.update(goodsDO);
    }

    @RequestMapping(value = “/remove”, method = RequestMethod.GET)
    @ResponseBody
    public boolean remove(String goodsID, int type) {

        boolean result = true;
        switch (type) {

            case 1:
                result = this.goodsService.remove(goodsID);
                break;
            case 2:
                result = this.goodsService.removeSoldGoods(goodsID);
                break;
            default:
                break;
        }
        return result;
    }

    @RequestMapping(value = “/createGoods”, method = RequestMethod.GET)
    public ModelAndView createGoods() {

        GoodsDO goodsDO = new GoodsDO();
        goodsDO.setID(UUID.randomUUID().toString());
        ModelAndView modelAndView = new ModelAndView(“GoodsEdit”);
        modelAndView.addObject(“goods”, goodsDO);
        modelAndView.addObject(“pageType”, “create”);
        return modelAndView;
    }

    @RequestMapping(value = “/friendGoods/{twoID}”, method = RequestMethod.GET)
    public ModelAndView friendGoods(@PathVariable(“twoID”) String twoID) {

        ModelAndView modelAndView = new ModelAndView(“FriendGoods”);
        modelAndView.addObject(“twoID”, twoID);
        return new ModelAndView(“FriendGoods”);
    }

    @RequestMapping(value = “/upImage”, method = RequestMethod.POST)
    @ResponseBody
    public boolean upImage(@RequestParam(“file”) MultipartFile imageFile) {

        try {

            this.imageUrl = this.imageService.upImage(imageFile.getBytes());
        } catch (Exception exception) {

        }
        return true;
    }

    @RequestMapping(value = “/addGoods”, method = RequestMethod.GET)
    @ResponseBody
    public boolean addGoods(String goodsJSON, String userID) {

        GoodsDO goodsDO = JSON.parseObject(goodsJSON, GoodsDO.class);
        goodsDO.setImageUrl(this.imageUrl);
        goodsDO.setStatus(GoodsStatus.unsold.name());
        return this.goodsService.save(goodsDO, userID);
    }

    @RequestMapping(value = “/updateStatus”, method = RequestMethod.GET)
    @ResponseBody
    public boolean updateStatus(String goodsID, String status) {

        return this.goodsService.updateStatus(goodsID, GoodsStatus.valueOf(status));
    }

    @RequestMapping(value = “/search”, method = RequestMethod.GET)
    @ResponseBody
    public List<GoodsDO> search(String userID, String text) {

        return null;
    }
}
package com.csl.controller;

import com.csl.domain.FinalValue;
import com.csl.domain.UserDO;
import com.csl.domain.ValidateCodeMap;
import com.csl.serviceImpl.MailServiceImpl;
import com.csl.serviceImpl.UserServiceImpl;
import com.csl.utility.ValidateCode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;

import java.awt.image.BufferedImage;
import java.util.*;

/**
* Created by csl on 2017/3/30.
*/
@Controller
@RequestMapping(value = “/user”)
public class UserController {

  @Autowired
  private UserServiceImpl userService;
  @Autowired
  private MailServiceImpl mailService;
  private String validateCode = “”;
  private ValidateCode validateCoder = ValidateCode.getInstance();
  private int validateIndex = 0;
  private ArrayList<ValidateCodeMap> validateMapList = new ArrayList<ValidateCodeMap>();

  @RequestMapping(value = “/getUserByEmail”, method = RequestMethod.GET)
  @ResponseBody
  public UserDO getUserByEmail(String email) {

    return this.userService.getUserByEmail(email);
  }

  @RequestMapping(value = “/getUserByID”, method = RequestMethod.GET)
  @ResponseBody
  public UserDO getUserByID(String ID) {

    return this.userService.getUserByID(ID);
  }

  @RequestMapping(value = “/validateUser”, method = RequestMethod.GET)
  @ResponseBody
  public boolean validateUser(String email, String password) {

    return this.userService.isRightUser(email, password);
  }

  @RequestMapping(value = “/getValidateCode”, method = RequestMethod.GET)
  @ResponseBody
  public String getValidateCode() {

    String result = “”;
    if (this.validateMapList != null && this.validateMapList.size() == 0) {

      this.validateMapList = this.validateCoder.getValidateMap();
    }
    int index = new Random().nextInt(this.validateMapList.size());
    while (index == this.validateIndex) {

      index = new Random().nextInt(this.validateMapList.size());
    }
    this.validateIndex = index;
    result = FinalValue.filePath + this.validateMapList.get(index).getName() + “.PNG”;
    return result;
  }

  @RequestMapping(value = “/checkValidateCode”, method = RequestMethod.GET)
  @ResponseBody
  public boolean checkValidateCode(String validateCode, int kind) {

    boolean result = true;
    switch (kind) {

      case 1:
        result = validateCode.equals(this.validateMapList.get(validateIndex).getResult());
        ;
        break;
      case 2:
        result = this.validateCode != “” && this.validateCode.equals(validateCode);
        break;
      default:
        break;
    }
    return result;
  }

  @RequestMapping(value = “/checkEmail”, method = RequestMethod.GET)
  @ResponseBody
  public boolean checkEmail(String userEmail) {

    return this.userService.checkEmail(userEmail);
  }

  @RequestMapping(value = “/checkName”, method = RequestMethod.GET)
  @ResponseBody
  public boolean checkName(String userName) {

    return this.userService.checkName(userName);
  }

  @RequestMapping(value = “/checkTelephone”, method = RequestMethod.GET)
  @ResponseBody
  public boolean checkTelephone(String telephone) {

    return this.userService.checkTelephone(telephone);
  }

  @RequestMapping(value = “/registerAccount”, method = RequestMethod.POST)
  @ResponseBody
  public UserDO registerAccount(UserDO userDO) {

    userDO.setID(UUID.randomUUID().toString());
    try {

      boolean result = this.userService.registerAccount(userDO);
      if (result) {

        return userDO;
      }
    } catch (Exception exception) {

    }
    return null;
  }

  @RequestMapping(value = “/sendValidateCode”, method = RequestMethod.GET)
  @ResponseBody
  public boolean sendValidateCode(String email) {

    boolean result = true;
    try {

      this.validateCode = this.mailService.sendValidateCode(email);
    } catch (Exception exception) {

      result = false;
    }
    return result;
  }

  @RequestMapping(value = “/updateAccount”, method = RequestMethod.POST)
  @ResponseBody
  public UserDO updateAccount(String email, String password) {

    try {

      boolean result = this.userService.resetPassword(email, password);
      if (result) {

        return this.userService.getUserByEmail(email);
      }
    } catch (Exception exception) {

    }
    return null;
  }

  @RequestMapping(value = “/modifyMessage”, method = RequestMethod.POST)
  @ResponseBody
  public boolean modifyMessage(String ID, String telephone) {

    return this.userService.changeMessage(ID, telephone);
  }

  @RequestMapping(value = “/getOwner”, method = RequestMethod.GET)
  @ResponseBody
  public UserDO getOwner(String goodsID) {

    return this.userService.getOwner(goodsID);
  }

  @RequestMapping(value = “/getFiveCity”, method = RequestMethod.GET)
  @ResponseBody
  public List<String> getFiveCity() {

    return this.userService.getFiveCity();
  }

  @RequestMapping(value = “/addFriend”, method = RequestMethod.POST)
  @ResponseBody
  public boolean addFriend(String oneID, String twoID, String name) {

    return this.userService.addFriend(oneID, twoID, name);
  }

  @RequestMapping(value = “/getAllFriends”, method = RequestMethod.POST)
  @ResponseBody
  public List<UserDO> getAllFriends(String oneID) {

    return this.userService.getAllFriends(oneID);
  }

  @RequestMapping(value = “/checkFriend”, method = RequestMethod.POST)
  @ResponseBody
  public boolean checkFriend(String oneID, String twoID) {

    return this.userService.checkFriend(oneID, twoID);
  }

  @RequestMapping(value = “/removeFriend”, method = RequestMethod.POST)
  @ResponseBody
  public boolean removeFriend(String oneID, String twoID) {

    return this.userService.removeFriend(oneID, twoID);
  }
}

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/157154.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • sublime3 激活码【中文破解版】

    (sublime3 激活码)最近有小伙伴私信我,问我这边有没有免费的intellijIdea的激活码,然后我将全栈君台教程分享给他了。激活成功之后他一直表示感谢,哈哈~https://javaforall.net/100143.htmlIntelliJ2021最新激活注册码,破解教程可免费永久激活,亲测有效,上面是详细链接哦~S32P…

    2022年3月25日
    44
  • Python 学习笔记 列表 for 循环 xxx XXX

    Python 学习笔记 列表 for 循环 xxx XXXPython学习笔记列表for循环xxxXXXprint(“-“*30)magicians=[‘alice’,’david’,’carolina’]formagicianinmagicians: print(magician)formagicianinmagicians: print(magician.title()+”,thatwasagreattrick!”) print(“I…

    2022年8月22日
    3
  • 从控制台读取password – C#

    从控制台读取password – C#

    2022年1月15日
    49
  • strtok独到深刻的讲解「建议收藏」

    strtok独到深刻的讲解「建议收藏」strtok函数的使用是一个老生常谈的问题了。该函数的作用很大,争议也很大。以下的表述可能与一些资料有区别或者说与你原来的认识有差异,因此,我尽量以实验为证。交代一下实验环境是必要的,winxp+vc6.0,一个极端平民化的实验环境。本文中使用的源代码大部分来自于网络,我稍加修改作为例证。当然,本人水平有限,有不妥之处在所难免,各位见谅的同时不妨多做实验,以实验为证。strtok的

    2022年7月14日
    15
  • hackbar 使用教程_hackbar简单安装使用教程

    hackbar 使用教程_hackbar简单安装使用教程安装hackbar:在火狐的附加组件中搜索“hackbar”,将它添加到火狐浏览器中,重启后Firefox后安装完成,按F9键打开我们就会看到在地址栏下面会出现一个大框框就是hackbar了框框很大碍事怎么办?简单啊F9试试首先先介绍横向第一排的下拉框:INT、HEX、OCT、Alphabet、AlNum分别代表了整数、十六进制、八进制、字母表、所有。假设你的输入框中有a这个字符,然后你将…

    2022年6月4日
    645
  • Spring Security OAUTH2 获取用户信息

    Spring Security OAUTH2 获取用户信息1.user-info-uri与token-info-uri作用:二者皆是为了checktoken,并且顺带返回了用户信息。配置信息位置在资源服务器上。解释:下面代码列举的都是token-info-uri,user-info-uri不解释。user-info-uri原理是在授权服务器认证后将认证信息Principal通过形参绑定的方法通过URL的方式获取用户信息。当然它也有配套的Us…

    2022年9月8日
    0

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号