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

相关推荐
mmmayang38 分钟前
Golang 项目平滑重启
开发语言·后端·golang
褚翾澜39 分钟前
Go语言的可选链
开发语言·后端·golang
芊言芊语2 小时前
汽车售后诊断 ODX 和 OTX 对比分析报告
汽车
小诸葛的博客3 小时前
client-go如何监听自定义资源
开发语言·后端·golang
入 梦皆星河3 小时前
go原理刨析之channel
开发语言·后端·golang
Pandaconda3 小时前
【新人系列】Golang 入门(十二):指针和结构体 - 上
开发语言·后端·golang·go·指针·结构体·后端开发
6<73 小时前
【go】类型断言
开发语言·后端·golang
u0103731063 小时前
Django异步执行任务django-background-tasks
后端·python·django
hxung3 小时前
springboot项目中常用的工具类和api
数据库·spring boot·后端
唐人街都是苦瓜脸4 小时前
SpringBoot的简单介绍
java·spring boot·后端