基于Java+SpringBoot+Vue的校企合作项目管理系统【源码+论文+演示视频+包运行成功】

博主介绍 擅长Java、微信小程序、Python、Android等,专注于Java技术领域和毕业项目实战**✌**

🍅文末获取源码联系🍅

👇🏻 精彩专栏推荐订阅👇🏻 不然下次找不到哟

Java项目精品实战案例(300套)
Java微信小程序项目实战(200套)

Python项目精品实战案例(100套)

目录

一、效果演示

二、前言介绍

三、主要技术

四、系统设计

五、功能实现截图

六、数据库设计

七、关键代码

八、源码获取


一、效果演示

基于springboot+vue的校企合作项目管理系统演示视频

二、前言介绍

本次就是通过以校企合作为主要的目的,通过以spring以及vue技术来进行整个系统的功能模块开发,本次的功能模块开发中包含了系统用户关系、企业用户管理、 新闻数据管理、留言管理、项目管理以及项目评价管理等信息内容,通过这些功能模块的开发从而能够实现校企合作项目的完整开发应用,实现对整个系统中全部功能的完整开发应用,从而更好的为学校、为企业、为学生提供很好的服务功能的实现。

三、主要技术

技术名 作用
SpringBoot 后端框架
Vue 前端框架
MySQL 数据库

四、系统设计

4.1、主要功能模块设计

五、功能实现截图

系统登录界面

图5.1 网站系统登录界面图

系统管理员登录界面

图5.2系统管理员登录界面

项目管理界面

图5.3用户管理界面

校企合作项目前端界面

图5.4校企合作项目前端界面

站内新闻界面

图5.5站内新闻界面

企业用户后台界面

图5.6企业用户界面

这里功能太多,就不一一截图展示了

六、数据库设计

数据库的概念设计上有通常会有很多中开发方式的选择,包含了自上而下、自下而上、混合开发等多种方式,通过多种方式可以确认的是,数据实体中应当包含标题、内容、结构等多项实体信息内容,本次将实体概念通过E-R模型的方式展示如下:

管理员实体

图6.2管理员实体图

企业用户实体

图6.3学生会员实体图

新闻实体

图6.4新闻实体图

项目实体

图6.5项目实体图

留言实体

图6.6留言实体图

七、关键代码

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.crypto.SecureUtil;
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.LiuyanbanInfo;
import com.example.dao.LiuyanbanInfoDao;
import com.example.service.LiuyanbanInfoService;
import com.example.exception.CustomException;
import com.example.common.ResultCode;
import com.example.vo.EchartsData;
import com.example.vo.LiuyanbanInfoVo;
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;

@RestController
@RequestMapping(value = "/liuyanbanInfo")
public class LiuyanbanInfoController {

    @Resource
    private LiuyanbanInfoService liuyanbanInfoService;
	@Resource
    private LiuyanbanInfoDao liuyanbanInfoDao;

    @PostMapping
    public Result<LiuyanbanInfo> add(@RequestBody LiuyanbanInfoVo liuyanbanInfo) {
        
		//mixmajixami
		liuyanbanInfoService.add(liuyanbanInfo);
        return Result.success(liuyanbanInfo);
    }
	
	//youtixing1
    //youtixing2

    @DeleteMapping("/{id}")
    public Result delete(@PathVariable Long id) {
        liuyanbanInfoService.delete(id);
        return Result.success();
    }

    @PutMapping
    public Result update(@RequestBody LiuyanbanInfoVo liuyanbanInfo) {
        liuyanbanInfoService.update(liuyanbanInfo);
        return Result.success();
    }
    //@PutMapping("/update2")
//    public Result update2(@RequestBody LiuyanbanInfoVo liuyanbanInfo) {
//        liuyanbanInfoService.update2(liuyanbanInfo);
//        return Result.success();
//    }
    @GetMapping("/{id}")
    public Result<LiuyanbanInfo> detail(@PathVariable Long id) {
        LiuyanbanInfo liuyanbanInfo = liuyanbanInfoService.findById(id);
        return Result.success(liuyanbanInfo);
    }
    @GetMapping("/changeStatus/{id}")
    public Result<LiuyanbanInfo> changeStatus(@PathVariable Long id) {
        liuyanbanInfoService.changeStatus(id);
        return Result.success();
    }

    @GetMapping
    public Result<List<LiuyanbanInfoVo>> all() {
        return Result.success(liuyanbanInfoService.findAll());
    }

    @GetMapping("/page/{name}")
    public Result<PageInfo<LiuyanbanInfoVo>> page(@PathVariable String name,
                                                @RequestParam(defaultValue = "1") Integer pageNum,
                                                @RequestParam(defaultValue = "5") Integer pageSize,
                                                HttpServletRequest request) {
        return Result.success(liuyanbanInfoService.findPage(name, pageNum, pageSize, request));
    }
	
	 @GetMapping("/pageqt/{name}")
    public Result<PageInfo<LiuyanbanInfoVo>> pageqt(@PathVariable String name,
                                                @RequestParam(defaultValue = "1") Integer pageNum,
                                                @RequestParam(defaultValue = "8") Integer pageSize,
                                                HttpServletRequest request) {
        return Result.success(liuyanbanInfoService.findPageqt(name, pageNum, pageSize, request));
    }

   // @PostMapping("/register")
//    public Result<LiuyanbanInfo> register(@RequestBody LiuyanbanInfo liuyanbanInfo) {
//        if (StrUtil.isBlank(liuyanbanInfo.getName()) || StrUtil.isBlank(liuyanbanInfo.getPassword())) {
//            throw new CustomException(ResultCode.PARAM_ERROR);
//        }
//        return Result.success(liuyanbanInfoService.add(liuyanbanInfo));
//    }

    /**
    * 批量通过excel添加信息
    * @param file excel文件
    * @throws IOException
    */
    @PostMapping("/upload")
    public Result upload(MultipartFile file) throws IOException {

        List<LiuyanbanInfo> infoList = ExcelUtil.getReader(file.getInputStream()).readAll(LiuyanbanInfo.class);
        if (!CollectionUtil.isEmpty(infoList)) {
            // 处理一下空数据
            List<LiuyanbanInfo> resultList = infoList.stream().filter(x -> ObjectUtil.isNotEmpty(x.getBiaoti())).collect(Collectors.toList());
            for (LiuyanbanInfo info : resultList) {
                liuyanbanInfoService.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("cheng", "A昵称");
row.put("touxiang", "A头像");
row.put("biaoti", "A标题");
row.put("neirong", "A内容");
row.put("huifu", "A回复");

		row.put("status", "是");
		row.put("level", "liuyanban");

        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=liuyanbanInfoModel.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);
    }
}

八、源码获取

大家点赞、收藏、关注、评论啦 、查看👇🏻获取联系方式👇🏻

精彩专栏推荐订阅下方专栏👇🏻👇🏻👇🏻👇🏻

Java项目精品实战案例(300套)

Java微信小程序项目实战(200套)

Python项目精品实战案例(100套)

相关推荐
qmx_0722 分钟前
HTB-Jerry(tomcat war文件、msfvenom)
java·web安全·网络安全·tomcat
为风而战30 分钟前
IIS+Ngnix+Tomcat 部署网站 用IIS实现反向代理
java·tomcat
技术无疆2 小时前
快速开发与维护:探索 AndroidAnnotations
android·java·android studio·android-studio·androidx·代码注入
Bug缔造者4 小时前
Element-ui el-table 全局表格排序
前端·javascript·vue.js
铁匠匠匠4 小时前
从零开始学数据结构系列之第六章《排序简介》
c语言·数据结构·经验分享·笔记·学习·开源·课程设计
xnian_5 小时前
解决ruoyi-vue-pro-master框架引入报错,启动报错问题
前端·javascript·vue.js
这孩子叫逆5 小时前
6. 什么是MySQL的事务?如何在Java中使用Connection接口管理事务?
数据库·mysql
罗政5 小时前
[附源码]超简洁个人博客网站搭建+SpringBoot+Vue前后端分离
vue.js·spring boot·后端
架构文摘JGWZ5 小时前
Java 23 的12 个新特性!!
java·开发语言·学习
阿树梢6 小时前
【Vue】VueRouter路由
前端·javascript·vue.js