記事の最後にあるソースコードを入手してください
開発言語: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);
}
}