博主介绍:✌擅长Java、微信小程序、Python、Android等,专注于Java技术领域和毕业项目实战✌
🍅文末获取源码联系🍅
👇🏻 精彩专栏推荐订阅👇🏻 不然下次找不到哟
目录
一、效果演示
二、前言介绍
现代化的市场中,人们日常的工作、生活都在不断的提速,而人们在工作与生活中与互联网的结合也越来越紧密,通过与互联网紧密的结合可以更好地实现日常工作的线上化、信息化、便捷化。现如今的各行各业都在通过网络来进行快速的信息传递。而信息的时间价值也在网络平台上得到了非常大的发挥空间。特别是兼职网站,将一些短暂的兼职信息在网络上发布,可以有效的提升兼职信息的扩散范围,能够帮助招聘人员快速的寻找到应聘者,实现双方共赢的局面,这样一个信息发布的平台有利于减少兼职岗位的空闲时间,提升招聘的效率。
三、主要技术
技术名 | 作用 |
---|---|
SpringBoot | 后端框架 |
Vue | 前端框架 |
MySQL | 数据库 |
四、系统设计
4.1、主要功能模块设计
本此的网站设计是从以下管理员、企业、学生等角色出发进行的内容需求设计,具体的功能设计模块展示如下:
4.1.1、系统管理员
4.1.2、企业
4.1.3、学生
4.2、管理员流程设计
五、功能截图
5.1、大学生兼职网首页
此次设计的大学生兼职网的首页中,设计的页面比较的干净整洁,在整个页面中通过轮播图的方式来进行相关的企业信息展示,以简单的菜单显示作为主页面中重要的组成部分,并且有企业的推荐信息在首页进行显示,如下图所示:
图5.1大学生兼职网首页
5.2、企业信息界面
图5.2企业信息界面图
5.3、兼职岗位界面
图5.3兼职岗位展示界面
5.4、新闻通知界面
图5.4新闻通知界面
5.5、企业信息注册界面
图5.5企业信息注册界面
5.6、学生的后台管理界面
以学生的角色登录到系统中之后,在学生的后台管理页面中,可以查看到相关的管理内容,包括了个人资料、薪资的查看,能够查看岗位的应聘信息等内容。
图5.6学生后台管理界面
5.7、应聘申请的界面
图5.7应聘申请界面
5.8、企业后台管理界面
图5.8企业管理薪资发放界面
5.9应聘管理审核界面
图5.9应聘管理审核界面
5.10管理员企业信息管理界面
管理员的后台管理界面中,有着非常丰富的管理范围,其中在企业信息的管理上,管理员可以看到该大学生兼职网中所有的注册企业信息,通过列表的方式可以查看到这些企业的基本信息,点击编辑可以进行详细的查看和修改操作,企业信息管理界面展示如下:
图5.10企业信息管理界面
这里功能太多,就不一一展示啦~
六、数据库设计(部分)
在数据库的概念设计上,是以E-R图来进行设计的,将数据中的实体信息内容进行很好的展示,通过实体内容来将数据与数据之间的逻辑关系进行划分,从而实现了盘活数据的功能。此次所设计的E-R图如下:
管理员E-R图:
图6.1管理员E-R图
应聘管理E-R图:
图6.2应聘管理E-R图
应聘岗位E-R图:
图6.3应聘岗位E-R图
七、关键代码
package com.example.controller;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.io.IoUtil;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
import cn.hutool.json.JSONObject;
import cn.hutool.poi.excel.ExcelUtil;
import cn.hutool.poi.excel.ExcelWriter;
import com.example.common.Result;
import com.example.common.ResultCode;
import com.example.entity.YonghuxinxiInfo;
import com.example.dao.YonghuxinxiInfoDao;
import com.example.service.YonghuxinxiInfoService;
import com.example.exception.CustomException;
import com.example.common.ResultCode;
import com.example.vo.EchartsData;
import com.example.vo.YonghuxinxiInfoVo;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.example.service.*;
import org.springframework.web.bind.annotation.*;
import org.springframework.beans.factory.annotation.Value;
import cn.hutool.core.util.StrUtil;
import org.springframework.web.multipart.MultipartFile;
import javax.annotation.Resource;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.*;
import java.util.stream.Collectors;
import cn.hutool.crypto.SecureUtil;
@RestController
@RequestMapping(value = "/yonghuxinxiInfo")
public class YonghuxinxiInfoController {
@Resource
private YonghuxinxiInfoService yonghuxinxiInfoService;
@Resource
private YonghuxinxiInfoDao yonghuxinxiInfoDao;
@PostMapping
public Result<YonghuxinxiInfo> add(@RequestBody YonghuxinxiInfoVo yonghuxinxiInfo) {
yonghuxinxiInfo.setMima(SecureUtil.md5(yonghuxinxiInfo.getMima()));
yonghuxinxiInfoService.add(yonghuxinxiInfo);
return Result.success(yonghuxinxiInfo);
}
//youtixing1
//youtixing2
@DeleteMapping("/{id}")
public Result delete(@PathVariable Long id) {
yonghuxinxiInfoService.delete(id);
return Result.success();
}
@PutMapping
public Result update(@RequestBody YonghuxinxiInfoVo yonghuxinxiInfo) {
yonghuxinxiInfoService.update(yonghuxinxiInfo);
return Result.success();
}
//@PutMapping("/update2")
// public Result update2(@RequestBody YonghuxinxiInfoVo yonghuxinxiInfo) {
// yonghuxinxiInfoService.update2(yonghuxinxiInfo);
// return Result.success();
// }
@GetMapping("/{id}")
public Result<YonghuxinxiInfo> detail(@PathVariable Long id) {
YonghuxinxiInfo yonghuxinxiInfo = yonghuxinxiInfoService.findById(id);
return Result.success(yonghuxinxiInfo);
}
@GetMapping("/changeStatus/{id}")
public Result<YonghuxinxiInfo> changeStatus(@PathVariable Long id) {
yonghuxinxiInfoService.changeStatus(id);
return Result.success();
}
@GetMapping
public Result<List<YonghuxinxiInfoVo>> all() {
return Result.success(yonghuxinxiInfoService.findAll());
}
@GetMapping("/page/{name}")
public Result<PageInfo<YonghuxinxiInfoVo>> page(@PathVariable String name,
@RequestParam(defaultValue = "1") Integer pageNum,
@RequestParam(defaultValue = "5") Integer pageSize,
HttpServletRequest request) {
return Result.success(yonghuxinxiInfoService.findPage(name, pageNum, pageSize, request));
}
// @PostMapping("/register")
// public Result<YonghuxinxiInfo> register(@RequestBody YonghuxinxiInfo yonghuxinxiInfo) {
// if (StrUtil.isBlank(yonghuxinxiInfo.getName()) || StrUtil.isBlank(yonghuxinxiInfo.getPassword())) {
// throw new CustomException(ResultCode.PARAM_ERROR);
// }
// return Result.success(yonghuxinxiInfoService.add(yonghuxinxiInfo));
// }
/**
* 批量通过excel添加信息
* @param file excel文件
* @throws IOException
*/
@PostMapping("/upload")
public Result upload(MultipartFile file) throws IOException {
List<YonghuxinxiInfo> infoList = ExcelUtil.getReader(file.getInputStream()).readAll(YonghuxinxiInfo.class);
if (!CollectionUtil.isEmpty(infoList)) {
// 处理一下空数据
List<YonghuxinxiInfo> resultList = infoList.stream().filter(x -> ObjectUtil.isNotEmpty(x.getYonghuming())).collect(Collectors.toList());
for (YonghuxinxiInfo info : resultList) {
yonghuxinxiInfoService.add(info);
}
}
return Result.success();
}
//yoxutonxgjitu
@GetMapping("/getExcelModel")
public void getExcelModel(HttpServletResponse response) throws IOException {
// 1. 生成excel
Map<String, Object> row = new LinkedHashMap<>();
row.put("yonghuming", "A用户名");
row.put("mima", "A密码");
row.put("xingming", "A姓名");
row.put("xingbie", "A性别");
row.put("shouji", "A手机");
row.put("shenfenzheng", "A身份证");
row.put("youxiang", "A邮箱");
row.put("zhaopian", "A照片");
row.put("beizhu", "A备注");
row.put("status", "是");
row.put("level", "yonghuxinxi");
List<Map<String, Object>> list = CollUtil.newArrayList(row);
// 2. 写excel
ExcelWriter writer = ExcelUtil.getWriter(true);
writer.write(list, true);
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8");
response.setHeader("Content-Disposition","attachment;filename=yonghuxinxiInfoModel.xlsx");
ServletOutputStream out = response.getOutputStream();
writer.flush(out, true);
writer.close();
IoUtil.close(System.out);
}
private void getPieData(String name, List<EchartsData> pieList, Map<String, Double> dataMap) {
EchartsData pieData = new EchartsData();
EchartsData.Series series = new EchartsData.Series();
Map<String, String> titleMap = new HashMap<>(2);
titleMap.put("text", name);
pieData.setTitle(titleMap);
series.setName(name + "比例");
series.setType("pie");
series.setRadius("55%");
List<Object> objects = new ArrayList<>();
List<Object> legendList = new ArrayList<>();
for (String key : dataMap.keySet()) {
Double value = dataMap.get(key);
objects.add(new JSONObject().putOpt("name", key).putOpt("value", value));
legendList.add(key);
}
series.setData(objects);
pieData.setSeries(Collections.singletonList(series));
Map<String, Boolean> map = new HashMap<>();
map.put("show", true);
pieData.setTooltip(map);
Map<String, Object> legendMap = new HashMap<>(4);
legendMap.put("orient", "vertical");
legendMap.put("x", "left");
legendMap.put("y", "center");
legendMap.put("data", legendList);
pieData.setLegend(legendMap);
pieList.add(pieData);
}
private void getBarData(String name, List<EchartsData> barList, Map<String, Double> dataMap) {
EchartsData barData = new EchartsData();
EchartsData.Series series = new EchartsData.Series();
List<Object> seriesObjs = new ArrayList<>();
List<Object> xAxisObjs = new ArrayList<>();
for (String key : dataMap.keySet()) {
Double value = dataMap.get(key);
xAxisObjs.add(key);
seriesObjs.add(value);
}
series.setType("bar");
series.setName(name);
series.setData(seriesObjs);
barData.setSeries(Collections.singletonList(series));
Map<String, Object> xAxisMap = new HashMap<>(1);
xAxisMap.put("data", xAxisObjs);
barData.setxAxis(xAxisMap);
barData.setyAxis(new HashMap<>());
Map<String, Object> legendMap = new HashMap<>(1);
legendMap.put("data", Collections.singletonList(name));
barData.setLegend(legendMap);
Map<String, Boolean> map = new HashMap<>(1);
map.put("show", true);
barData.setTooltip(map);
Map<String, String> titleMap = new HashMap<>(1);
titleMap.put("text", name);
barData.setTitle(titleMap);
barList.add(barData);
}
}
八、论文参考
九、源码获取
大家点赞、收藏、关注、评论啦 、查看👇🏻获取联系方式👇🏻
精彩专栏推荐订阅:在下方专栏👇🏻👇🏻👇🏻👇🏻