首页 > 其他分享 >基于springboot+vue的大学报修管理系统

基于springboot+vue的大学报修管理系统

时间:2024-10-22 20:50:22浏览次数:3  
标签:报修 return springboot Comments commentsService comments vue Result public

博主主页:猫头鹰源码
博主简介:Java领域优质创作者、CSDN博客专家、阿里云专家博主、公司架构师、全网粉丝5万+、专注Java技术领域和毕业设计项目实战,欢迎高校老师\讲师\同行交流合作
​主要内容:毕业设计(Javaweb项目|小程序|Python|HTML|数据可视化|SSM|SpringBoot|Vue|Jsp|PHP等)、简历模板、学习资料、面试题库、技术咨询
文末联系获取
感兴趣可以先收藏起来,以防走丢,有任何选题、文档编写、代码问题也可以咨询我们

项目介绍: 

本系统为最新原创项目,采用前后端分离,项目代码工整,结构清晰,适合选题:报修、报修管理、大学报修、前后端分离类其他报修话题等。系统采用springboot+vue整合开发,前端主要使用了vue、项目后端主要使用了springboot,数据层采用mybatis。

部分功能:

1、学生管理:维护学生信息 
2、维修人员管理:维护维修人员信息 
3、宿舍楼管理:对学校宿舍楼进行增删改查 
4、维修类别管理:对维修类别管理 
5、维修管理:学生可以进行报修,维修人员进行接单 
6、接单管理:查看维修人员接单信息和完成情况 
7、评论管理:学生评价 
8、公告管理:管理员维护公告,其他人查看 
9、管理员管理:进行维护账号

系统包含技术:

后端:springboot,mybatis, Spring Security
前端:vue、js、css等
开发工具:idea/vscode
数据库:mysql 5.7
JDK版本:jdk1.8

部分截图说明:

统计分析

登录

学生管理

维修人员管理

宿舍楼管理

维修管理

接单

部分代码:

 /**
     * 分页查询
     */
    @PostMapping("selectAll")
    public PageInfo<Comments> selectAll(@RequestBody Map<String,String> mp) {
        PageHelper.startPage(Integer.parseInt(mp.get("currentPage").toString()), Integer.parseInt(mp.get("pagesize").toString()));
        List<Comments> list = commentsService.queryAllByLimit(mp);
        PageInfo<Comments> pageInfo = new PageInfo<Comments>(list);
        return pageInfo;
    }

    /**
     * 查询所有
     */
    @PostMapping("queryAll")
    public List<Comments> queryAll(@RequestBody Comments comments) {
        List<Comments> list = commentsService.queryCondition(comments);
        return list;
    }

    /**
     * 修改
     */
    @RequestMapping("edit")
    public Result edit(@RequestBody Comments comments) {
        try {
            commentsService.update(comments);
            return Result.success("修改成功");
        }catch (Exception e){
            e.printStackTrace();
            return Result.error("修改失败");
        }
    }

    /**
     * 新增
     */
    @RequestMapping("add")
    public Result add(@RequestBody Comments comments) {
        try {
            Comments comments1 = new Comments();
            comments1.setOid(comments.getOid());
            List<Comments> comments2 = commentsService.queryCondition(comments1);
            if(comments2.size()>0){
                return Result.error("已评论,请勿重复评论");
            }
            Date date = new Date();
            comments.setCreateTime(date);
            commentsService.insert(comments);
            return Result.success("新增成功");
        }catch (Exception e){
            e.printStackTrace();
            return Result.error("新增失败");
        }
    }

    /**
     * 通过主键查询单条数据
     */
    @GetMapping("selectOne")
    public Comments selectOne(Integer id) {
        return commentsService.queryById(id);
    }


    /**
     * 通过主键删除数据
     */
    @GetMapping("deleteById")
    public Result deleteById(Integer id) {
        try {
            commentsService.deleteById(id);
            return Result.success("删除成功");
        }catch (Exception e){
            e.printStackTrace();
            return Result.error("删除失败");
        }
    }

以上就是部分功能展示,从整体上来看,本系统功能是十分完整的,界面设计简洁大方,交互友好,数据库设计也很合理,规模适中,代码工整,清晰,适合学习使用。

好了,今天就到这儿吧,小伙伴们点赞、收藏、评论,一键三连走起呀,下期见~

标签:报修,return,springboot,Comments,commentsService,comments,vue,Result,public
From: https://blog.csdn.net/mtyedu/article/details/143133778

相关文章