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

相关推荐
懒虫虫~12 分钟前
基于SpringBoot解决RabbitMQ消息丢失问题
spring boot·rabbitmq
java干货1 小时前
深度解析:Spring Boot 配置加载顺序、优先级与 bootstrap 上下文
前端·spring boot·bootstrap
2302_809798321 小时前
【JavaWeb】Docker项目部署
java·运维·后端·青少年编程·docker·容器
zhojiew2 小时前
关于akka官方quickstart示例程序(scala)的记录
后端·scala
sclibingqing2 小时前
SpringBoot项目接口集中测试方法及实现
java·spring boot·后端
JohnYan3 小时前
Bun技术评估 - 03 HTTP Server
javascript·后端·bun
周末程序猿3 小时前
Linux高性能网络编程十谈|C++11实现22种高并发模型
后端·面试
ZHOU_WUYI3 小时前
Flask与Celery 项目应用(shared_task使用)
后端·python·flask
冒泡的肥皂4 小时前
强大的ANTLR4语法解析器入门demo
后端·搜索引擎·编程语言