基于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

相关推荐
SamDeepThinking31 分钟前
在 Cursor IDE 中配置 SQLTools 连接 MySQL 数据库指南(Windows 11)
后端·ai编程·cursor
聆风吟º39 分钟前
【Spring Boot 报错已解决】Web server failed to start. Port 8080 was already in use.
spring boot·笔记·技术干货
武子康39 分钟前
大数据-92 Spark 深入解析 Spark Standalone 模式:组件构成、提交流程与性能优化
大数据·后端·spark
青梅主码1 小时前
麦肯锡最新发布报告《想打破生产力天花板吗?重新思考完成工作的方式》:与其一味调整组织结构,不如从根本上简化工作流程,释放更大价值
后端
Python私教1 小时前
源滚滚Rust全栈班v1.02 无符号整数详解
开发语言·后端·rust
一叶飘零_sweeeet1 小时前
SpringBoot 数据脱敏实战: 构建企业级敏感信息保护体系
java·spring boot·数据安全
绝无仅有1 小时前
面试总结之Nginx 经验常见问题汇总第二篇
后端·面试·github
这里有鱼汤1 小时前
分享7种常见的量化交易策略
后端
绝无仅有2 小时前
面试实战总结之Nginx配置经验第一篇
后端·面试·github
shark_chili2 小时前
CPU性能优化三剑客:分支预测、并行运算与超线程技术深度解析
后端