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

相关推荐
站大爷IP10 分钟前
Python爬虫库性能与选型实战指南:从需求到落地的全链路解析
后端
武昌库里写JAVA11 分钟前
「mysql」Mac osx彻底删除mysql
vue.js·spring boot·毕业设计·layui·课程设计
小杰来搬砖14 分钟前
在 Java 的 MyBatis 框架中,# 和 $ 的区别
后端
wenb1n24 分钟前
【安全漏洞】隐藏在HTTP请求中的“隐形杀手”:Host头攻击漏洞深度剖析
java·后端
snakeshe101024 分钟前
Java开发中的最佳实践与代码优化技巧
后端
不失者24 分钟前
关于AI时代的一点思考
人工智能·后端·程序员
好奇心笔记25 分钟前
D1数据库实战:SQLite在云端的华丽转身
人工智能·后端
Ray6626 分钟前
es-plugin:lock:mmap+mlock
后端
snakeshe101030 分钟前
H2数据库入门指南:从建库到操作的全流程实践
后端
字节跳跃者31 分钟前
SpringBoot AOP + Redis 延时双删功能实战
java·后端