• (免费分享)基于springboot,vue高校就业管理平台(带论文)


    源码获取:关注文末gongzhonghao,输入009领取下载链接

    开发工具:IDEA

    服务器:Tomcat9.0, jdk1.8

    项目构建:maven

    数据库:mysql5.7

    系统分前后台,采用前后端分离

    前端技术:vue+elementUI等框架实现

    服务端技术:springboot+mybatis+Redis

    项目功能描述:

    项目分前台和后台,分学生、企业、管理员三个角色

    1.学生功能:

    2.企业功能:

    3.管理员/用户功能:

    文档截图:

     

     

    前台截图:

     

     

     

     

     

     

     

     

    学生截图:

     

     

     

     

     

     

     

    企业截图:

     

     

     

    管理员截图:

     

     

     

     

     

     

    1. package top.ludonghuang.controller;
    2. import com.github.pagehelper.PageInfo;
    3. import org.springframework.beans.factory.annotation.Autowired;
    4. import org.springframework.web.bind.annotation.*;
    5. import top.ludonghuang.entity.Certificate;
    6. import top.ludonghuang.entity.Resume;
    7. import top.ludonghuang.service.CertificateService;
    8. import top.ludonghuang.service.ResumeService;
    9. import top.ludonghuang.service.UserDataService;
    10. import top.ludonghuang.utils.Result;
    11. import top.ludonghuang.vo.UserData;
    12. import java.util.Map;
    13. @RestController
    14. @RequestMapping("/certificate")
    15. public class CertificateController {
    16. @Autowired
    17. private CertificateService certificateService;
    18. @Autowired
    19. private ResumeService resumeService;
    20. @Autowired
    21. private UserDataService userDataService;
    22. @PostMapping("/create")
    23. public Result create(@RequestBody Certificate certificate) {
    24. int flag = certificateService.create(certificate);
    25. if (flag > 0) {
    26. return Result.success();
    27. } else {
    28. return Result.error();
    29. }
    30. }
    31. @PostMapping("/delete")
    32. public Result delete(String ids) {
    33. int flag = certificateService.delete(ids);
    34. if (flag > 0) {
    35. return Result.success();
    36. } else {
    37. return Result.error();
    38. }
    39. }
    40. @PostMapping("/update")
    41. public Result update(@RequestBody Certificate certificate) {
    42. int flag = certificateService.update(certificate);
    43. if (flag > 0) {
    44. return Result.success();
    45. } else {
    46. return Result.error();
    47. }
    48. }
    49. @PostMapping("/detail")
    50. public Result detail(Integer id) {
    51. return Result.success(certificateService.detail(id));
    52. }
    53. @PostMapping("/query")
    54. public Map query(@RequestBody Certificate certificate) {
    55. UserData user = userDataService.getUser();
    56. Resume resumeParam = resumeService.detail(user.getId());
    57. if(resumeParam == null) {
    58. return Result.success(new PageInfo<>());
    59. }
    60. certificate.setResumeId(resumeParam.getId());
    61. PageInfo pageInfo = certificateService.query(certificate);
    62. pageInfo.getList().forEach(item -> {
    63. Resume resume = resumeService.detail(item.getResumeId());
    64. item.setResume(resume);
    65. });
    66. return Result.success(pageInfo);
    67. }
    68. }

     

     

    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 Map query(@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()));
        }
    
    }
    
  • 相关阅读:
    springboot整合log4j2
    142 环形链表II
    python Plotly可视化
    实用数据结构【优先队列】 - 优先队列详解
    Linux高性能服务器编程——ch3笔记
    TCP 报文首部的 6 个标记位
    【JavaScript-事件①】事件三要素,事件处理程序
    【鲁棒电力系统状态估计】基于投影统计的电力系统状态估计的鲁棒GM估计器(Matlab代码实现)
    层次分析法(评价类问题)
    三分钟了解var const let 区别
  • 原文地址:https://blog.csdn.net/weixin_42899150/article/details/127839106