基于Spring Boot + Vue3实现的在线汽车保养维修预约管理系统源码+文档

前言

基于Spring Boot + Vue3实现的在线汽车保养维修预约管理系统是一种前后端分离架构的应用,它结合了Java后端开发框架Spring Boot和现代JavaScript前端框架Vue.js 3.0的优势。这样的系统可以为汽车服务站提供一个高效的平台来管理客户的预约请求

技术选型

系统环境

  • Java EE 8
  • Servlet 3.0
  • Apache Maven 3

主框架

  • Spring Boot 2.2.x
  • Spring Framework 5.2.x
  • Spring Security 5.2.x

持久层

  • Apache MyBatis 3.5.x
  • Hibernate Validation 6.0.x
  • Alibaba Druid 1.2.x

视图层

  • Vue 2.6.x
  • Axios 0.21.x
  • Element 2.15.x

项目展示









数据库设计

接口文档

代码展示

java 复制代码
package com.cy.web.controller.front;

import com.cy.common.annotation.Log;
import com.cy.common.core.controller.BaseController;
import com.cy.common.core.domain.AjaxResult;
import com.cy.common.core.page.TableDataInfo;
import com.cy.common.enums.BusinessType;
import com.cy.common.utils.SecurityUtils;
import com.cy.system.domain.BizAppointmentMechanicShopHistory;
import com.cy.system.domain.BizMechanicShop;
import com.cy.system.service.IBizAppointmentMechanicShopHistoryService;
import com.cy.system.service.IBizMechanicShopService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 预约记录Controller
 *
 * @author c&y
 * @since 2024-12-22
 */
@Api(tags = "预约记录前台接口")
@RestController
@RequestMapping("/front/bizAppointmentMechanicShopHistory")
public class BizFrontAppointmentMechanicShopHistoryController extends BaseController
{
    @Autowired
    private IBizAppointmentMechanicShopHistoryService bizAppointmentMechanicShopHistoryService;
    @Autowired
    private IBizMechanicShopService bizMechanicShopService;
    /**
     * 查询预约记录列表
     */
    @ApiOperation("查询预约记录列表")
    @GetMapping("/list")
    public TableDataInfo list(BizAppointmentMechanicShopHistory bizAppointmentMechanicShopHistory)
    {
        startPage();
        List<BizAppointmentMechanicShopHistory> list = bizAppointmentMechanicShopHistoryService.selectBizAppointmentMechanicShopHistoryList(bizAppointmentMechanicShopHistory);
        return getDataTable(list);
    }



    /**
     * 获取预约记录详细信息
     */
    @ApiOperation("获取预约记录详细信息")
    @GetMapping(value = "/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id)
    {
        return success(bizAppointmentMechanicShopHistoryService.selectBizAppointmentMechanicShopHistoryById(id));
    }

    /**
     * 新增预约记录
     */
    @ApiOperation("新增预约记录")
    @PreAuthorize("@ss.hasPermi('front:bizAppointmentMechanicShopHistory:add')")
    @Log(title = "预约记录", businessType = BusinessType.INSERT)
    @PostMapping
    public AjaxResult add(@RequestBody BizAppointmentMechanicShopHistory bizAppointmentMechanicShopHistory)
    {
        BizMechanicShop bizMechanicShop = bizMechanicShopService.selectBizMechanicShopById(bizAppointmentMechanicShopHistory.getMechanicShopId());
        bizAppointmentMechanicShopHistory.setDate(bizAppointmentMechanicShopHistory.getDate());
        bizAppointmentMechanicShopHistory.setPrice(bizMechanicShop.getPrice());
        bizAppointmentMechanicShopHistory.setMechanicShopName(bizMechanicShop.getMechanicShopName());
        bizAppointmentMechanicShopHistory.setCategory(bizMechanicShop.getCategory());
        bizAppointmentMechanicShopHistory.setMobile(SecurityUtils.getLoginUser().getUser().getPhonenumber());
        bizAppointmentMechanicShopHistory.setName(SecurityUtils.getLoginUser().getUser().getNickName());
        bizAppointmentMechanicShopHistory.setUsername(SecurityUtils.getUsername());
        return toAjax(bizAppointmentMechanicShopHistoryService.insertBizAppointmentMechanicShopHistory(bizAppointmentMechanicShopHistory));
    }
}

适用场景

1、毕业生希望快速启动一个新的Java Web应用程序。

2、团队寻找一个稳定的模板来加速产品开发周期。

3、教育机构或个人学习者用于教学目的或自学练习。

4、创业公司需要一个可以立即投入使用的MVP(最小可行产品)。

下载链接

编码不易,一杯奶茶的钱可以下载全部源码+文档资料!

下载链接:https://download.csdn.net/download/woshichenpi/90209273

相关推荐
ss2739 分钟前
基于Springboot + vue实现的中医院问诊系统
java·spring boot·后端
左灯右行的爱情1 小时前
Redis 缓存并发问题深度解析:击穿、雪崩与穿透防治指南
java·数据库·redis·后端·缓存
南玖yy1 小时前
C++ 成员变量缺省值:引用、const 与自定义类型的初始化规则详解,引用类型和const类型的成员变量自定义类型成员是否可以用缺省值?
c语言·开发语言·c++·后端·架构·c++基础语法
不爱总结的麦穗2 小时前
面试常问!Spring七种事务传播行为一文通关
后端·spring·面试
小虚竹2 小时前
claude 3.7,极为均衡的“全能型战士”大模型,国内直接使用
开发语言·后端·claude·claude3.7
苹果酱05672 小时前
python3语言基础语法整理
java·vue.js·spring boot·mysql·课程设计
Yharim2 小时前
两个客户端如何通过websocket通信
spring boot·后端·websocket
bcbnb2 小时前
iOS 性能调优实战:三款工具横向对比实测(含 Instruments、KeyMob、Xlog)
后端
极客智谷2 小时前
Spring AI应用系列——基于ARK实现多模态模型应用
人工智能·后端
radient3 小时前
Java/Go双修 - Go并发Goroutine与Java对比
java·后端·go