基于Spring Boot + Vue3实现的在线预约看房管理系统源码+文档
前言
基于Spring Boot + Vue3实现的在线预约看房管理系统是一种允许潜在买家或租户通过互联网预约时间参观房产的软件解决方案。这类系统可以极大地简化房地产交易过程,提高效率,并为客户提供更便捷的服务体验。
技术选型
系统环境
- 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
项目展示
数据库设计
接口文档
代码展示
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.BizAppointmentHouseHistory;
import com.cy.system.domain.BizHouse;
import com.cy.system.service.IBizAppointmentHouseHistoryService;
import com.cy.system.service.IBizHouseService;
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/bizAppointmentHouseHistory")
public class BizFrontAppointmentHouseHistoryController extends BaseController
{
@Autowired
private IBizAppointmentHouseHistoryService bizAppointmentHouseHistoryService;
@Autowired
private IBizHouseService bizHouseService;
/**
* 查询预约记录列表
*/
@ApiOperation("查询预约记录列表")
@GetMapping("/list")
public TableDataInfo list(BizAppointmentHouseHistory bizAppointmentHouseHistory)
{
startPage();
List<BizAppointmentHouseHistory> list = bizAppointmentHouseHistoryService.selectBizAppointmentHouseHistoryList(bizAppointmentHouseHistory);
return getDataTable(list);
}
/**
* 获取预约记录详细信息
*/
@ApiOperation("获取预约记录详细信息")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(bizAppointmentHouseHistoryService.selectBizAppointmentHouseHistoryById(id));
}
/**
* 新增预约记录
*/
@ApiOperation("新增预约记录")
@PreAuthorize("@ss.hasPermi('front:bizAppointmentHouseHistory:add')")
@Log(title = "预约记录", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BizAppointmentHouseHistory bizAppointmentHouseHistory)
{
BizHouse bizHouse = bizHouseService.selectBizHouseById(bizAppointmentHouseHistory.getHouseId());
bizAppointmentHouseHistory.setDate(bizAppointmentHouseHistory.getDate());
bizAppointmentHouseHistory.setPrice(bizHouse.getPrice());
bizAppointmentHouseHistory.setHouseName(bizHouse.getHouseName());
bizAppointmentHouseHistory.setCategory(bizHouse.getCategory());
bizAppointmentHouseHistory.setMobile(SecurityUtils.getLoginUser().getUser().getPhonenumber());
bizAppointmentHouseHistory.setName(SecurityUtils.getLoginUser().getUser().getNickName());
bizAppointmentHouseHistory.setUsername(SecurityUtils.getUsername());
return toAjax(bizAppointmentHouseHistoryService.insertBizAppointmentHouseHistory(bizAppointmentHouseHistory));
}
}
下载链接
编码不易,一杯奶茶的钱可以下载全部源码+文档资料!
下载链接:https://download.csdn.net/download/woshichenpi/90204308