源码获取:关注文末gongzhonghao,输入009领取下载链接
开发工具:IDEA
服务器:Tomcat9.0, jdk1.8
项目构建:maven
数据库:mysql5.7
系统分前后台,采用前后端分离
前端技术:vue+elementUI等框架实现
服务端技术:springboot+mybatis+Redis
项目功能描述:
项目分前台和后台,分学生、企业、管理员三个角色
1.学生功能:
2.企业功能:
3.管理员/用户功能:
文档截图:
前台截图:
学生截图:
企业截图:
管理员截图:
- package top.ludonghuang.controller;
-
- import com.github.pagehelper.PageInfo;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.*;
- import top.ludonghuang.entity.Certificate;
- import top.ludonghuang.entity.Resume;
- import top.ludonghuang.service.CertificateService;
- import top.ludonghuang.service.ResumeService;
- import top.ludonghuang.service.UserDataService;
- import top.ludonghuang.utils.Result;
- import top.ludonghuang.vo.UserData;
-
- import java.util.Map;
-
- @RestController
- @RequestMapping("/certificate")
- public class CertificateController {
-
- @Autowired
- private CertificateService certificateService;
- @Autowired
- private ResumeService resumeService;
- @Autowired
- private UserDataService userDataService;
-
- @PostMapping("/create")
- public Result create(@RequestBody Certificate certificate) {
- int flag = certificateService.create(certificate);
- if (flag > 0) {
- return Result.success();
- } else {
- return Result.error();
- }
- }
-
- @PostMapping("/delete")
- public Result delete(String ids) {
- int flag = certificateService.delete(ids);
- if (flag > 0) {
- return Result.success();
- } else {
- return Result.error();
- }
- }
-
- @PostMapping("/update")
- public Result update(@RequestBody Certificate certificate) {
- int flag = certificateService.update(certificate);
- if (flag > 0) {
- return Result.success();
- } else {
- return Result.error();
- }
- }
-
- @PostMapping("/detail")
- public Result detail(Integer id) {
- return Result.success(certificateService.detail(id));
- }
-
- @PostMapping("/query")
- public Map
query(@RequestBody Certificate certificate) { - UserData user = userDataService.getUser();
- Resume resumeParam = resumeService.detail(user.getId());
- if(resumeParam == null) {
- return Result.success(new PageInfo<>());
- }
- certificate.setResumeId(resumeParam.getId());
- PageInfo
pageInfo = certificateService.query(certificate); - pageInfo.getList().forEach(item -> {
- Resume resume = resumeService.detail(item.getResumeId());
- item.setResume(resume);
- });
- return Result.success(pageInfo);
- }
-
- }
package top.ludonghuang.controller; import com.github.pagehelper.PageInfo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import top.ludonghuang.entity.Company; import top.ludonghuang.framework.redis.RedisUtil; import top.ludonghuang.framework.role.RequiresRoles; import top.ludonghuang.framework.role.Role; import top.ludonghuang.service.CompanyService; import top.ludonghuang.utils.Result; import top.ludonghuang.utils.UserThreadLocal; import top.ludonghuang.vo.UserData; import java.util.Map; @RestController @RequestMapping("/company") public class CompanyController { @Autowired private CompanyService companyService; @Autowired private RedisUtil redisUtil; @PostMapping("/create") public Result create(@RequestBody Company company) { int flag = companyService.create(company); if (flag > 0) { return Result.success(); } else { return Result.error(); } } @PostMapping("/delete") public Result delete(String ids) { int flag = companyService.delete(ids); if (flag > 0) { return Result.success(); } else { return Result.error(); } } @PostMapping("/update") public Result update(@RequestBody Company company) { int flag = companyService.update(company); if (flag > 0) { return Result.success(); } else { return Result.error(); } } @PostMapping("/detail") public Result detail(Integer id) { return Result.success(companyService.detail(id)); } @PostMapping("/query") public Mapquery(@RequestBody Company company) { PageInfo pageInfo = companyService.query(company); return Result.success(pageInfo); } @PostMapping("/info") @RequiresRoles(type = Role.COMPANY) public Result info() { //获取登录用户的信息 String token = UserThreadLocal.get(); UserData userData = (UserData) redisUtil.get(token); return Result.success(companyService.detail(userData.getId())); } }