基于java+springboot+vue的房屋租赁管理系统

项目介绍

互联网发展至今,无论是其理论还是技术都已经成熟,而且它广泛参与在社会中的方方面面。它让信息都可以通过网络传播,搭配信息管理工具可以很好地为人们提供服务。针对房屋租赁信息管理混乱,出错率高,信息安全性差,劳动强度大,费时费力等问题,采用房屋租赁管理系统可以有效管理,使信息管理能够更加科学和规范。

房屋租赁管理系统在idea环境中,使用Java语言进行编码,使用Mysql创建数据表保存本系统产生的数据。系统可以提供信息显示和相应服务,其管理员管理屋主和用户,管理房屋,租房订单,保洁,安保,房屋租赁公告等信息。屋主管理房屋,审核租用订单,预约保洁和安保。用户收藏房屋,租用房屋,支付租房订单。

总之,房屋租赁管理系统集中管理信息,有着保密性强,效率高,存储空间大,成本低等诸多优点。它可以降低信息管理成本,实现信息管理计算机化。

4.2 功能结构设计
在前面分析的管理员功能的基础上,进行接下来的设计工作,最终展示设计的管理员结构图(见下图)。管理员管理屋主和用户,管理房屋,租房订单,保洁,安保,房屋租赁公告等信息。
在这里插入图片描述
在前面分析的屋主功能的基础上,进行接下来的设计工作,最终展示设计的屋主结构图(见下图)。屋主管理房屋,审核租用订单,预约保洁和安保。
在这里插入图片描述
在前面分析的用户功能的基础上,进行接下来的设计工作,最终展示设计的用户结构图(见下图)。用户收藏房屋,租用房屋,支付租房订单。
在这里插入图片描述

开发环境

编程语言:Java
数据库 :Mysql
系统架构:B/S
后端框架:SpringBoot
编译工具:idea或者eclipse,jdk1.8,maven
支持定做:java/php/python/android/小程序vue/爬虫/c#/asp.net

系统实现

5.1 管理员功能实现
5.1.1 屋主管理
管理员进入指定功能操作区之后可以管理屋主。其页面见下图。屋主的资料需要管理员负责管理,包括修改,新增,删除等操作。
在这里插入图片描述

图5.1 屋主管理页面

5.1.2 房屋信息管理
管理员进入指定功能操作区之后可以管理房屋信息。其页面见下图。管理员查看房屋对应的用户评论,可以增删改查房屋信息。
在这里插入图片描述

图5.2 房屋信息管理页面

5.1.3 房屋租赁公告
管理员进入指定功能操作区之后可以管理房屋租赁公告信息。其页面见下图。管理员发布房屋租赁公告信息,对本页面显示的房屋租赁公告进行修改,查询,删除。
在这里插入图片描述

图5.3 房屋租赁公告页面

5.2 屋主功能实现
5.2.1 租用订单管理
屋主进入指定功能操作区之后可以管理租用订单。其页面见下图。屋主查看租用订单是否支付,审核用户租用房屋的订单。
在这里插入图片描述

图5.4 租用订单管理页面

5.2.2 房屋信息管理
屋主进入指定功能操作区之后可以管理房屋信息。其页面见下图。屋主可以对自己的房屋预约保洁或安保。可以查看房屋对应的用户评论,可以修改房屋信息。
在这里插入图片描述

图5.5 房屋信息管理页面

5.2.3 保洁管理
屋主进入指定功能操作区之后可以管理保洁信息。其页面见下图。屋主在当前页面可以取消保洁,可以查看预约的保洁信息是否通过管理员审核。
在这里插入图片描述

图5.6 保洁管理页面

5.3 用户功能实现
5.3.1 房屋信息
用户进入指定功能操作区之后可以查看房屋信息。其页面见下图。用户在本页面可以收藏房屋,评论房屋,租用房屋。
在这里插入图片描述

图5.7 房屋信息页面

5.3.2 租用订单管理
用户进入指定功能操作区之后可以管理租用订单。其页面见下图。用户在当前页面支付租用房屋的订单,可以取消订单,可以查看租用订单是否通过屋主的审核。
在这里插入图片描述

图5.8 租用订单管理页面

5.3.3 取消订单管理
用户进入指定功能操作区之后可以管理取消的订单。其页面见下图。用户查看已经取消的房屋租用订单,可以删除已取消的房屋租用订单。
在这里插入图片描述

图5.9 取消订单管理页面

核心代码

package com.controller;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;

import com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.annotation.IgnoreAuth;

import com.entity.AnbaoquxiaoguanliEntity;
import com.entity.view.AnbaoquxiaoguanliView;

import com.service.AnbaoquxiaoguanliService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;


/**
 * 安保取消管理
 * 后端接口
 * @author 
 * @email 
 * @date 
 */
@RestController
@RequestMapping("/anbaoquxiaoguanli")
public class AnbaoquxiaoguanliController {
    @Autowired
    private AnbaoquxiaoguanliService anbaoquxiaoguanliService;
    


    /**
     * 后端列表
     */
    @RequestMapping("/page")
    public R page(@RequestParam Map<String, Object> params,AnbaoquxiaoguanliEntity anbaoquxiaoguanli,
		HttpServletRequest request){
		String tableName = request.getSession().getAttribute("tableName").toString();
		if(tableName.equals("wuzhu")) {
			anbaoquxiaoguanli.setWuzhuzhanghao((String)request.getSession().getAttribute("username"));
		}
        EntityWrapper<AnbaoquxiaoguanliEntity> ew = new EntityWrapper<AnbaoquxiaoguanliEntity>();
		PageUtils page = anbaoquxiaoguanliService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, anbaoquxiaoguanli), params), params));

        return R.ok().put("data", page);
    }
    
    /**
     * 前端列表
     */
    @RequestMapping("/list")
    public R list(@RequestParam Map<String, Object> params,AnbaoquxiaoguanliEntity anbaoquxiaoguanli, 
		HttpServletRequest request){
        EntityWrapper<AnbaoquxiaoguanliEntity> ew = new EntityWrapper<AnbaoquxiaoguanliEntity>();
		PageUtils page = anbaoquxiaoguanliService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, anbaoquxiaoguanli), params), params));
        return R.ok().put("data", page);
    }

	/**
     * 列表
     */
    @RequestMapping("/lists")
    public R list( AnbaoquxiaoguanliEntity anbaoquxiaoguanli){
       	EntityWrapper<AnbaoquxiaoguanliEntity> ew = new EntityWrapper<AnbaoquxiaoguanliEntity>();
      	ew.allEq(MPUtil.allEQMapPre( anbaoquxiaoguanli, "anbaoquxiaoguanli")); 
        return R.ok().put("data", anbaoquxiaoguanliService.selectListView(ew));
    }

	 /**
     * 查询
     */
    @RequestMapping("/query")
    public R query(AnbaoquxiaoguanliEntity anbaoquxiaoguanli){
        EntityWrapper< AnbaoquxiaoguanliEntity> ew = new EntityWrapper< AnbaoquxiaoguanliEntity>();
 		ew.allEq(MPUtil.allEQMapPre( anbaoquxiaoguanli, "anbaoquxiaoguanli")); 
		AnbaoquxiaoguanliView anbaoquxiaoguanliView =  anbaoquxiaoguanliService.selectView(ew);
		return R.ok("查询安保取消管理成功").put("data", anbaoquxiaoguanliView);
    }
	
    /**
     * 后端详情
     */
    @RequestMapping("/info/{id}")
    public R info(@PathVariable("id") Long id){
        AnbaoquxiaoguanliEntity anbaoquxiaoguanli = anbaoquxiaoguanliService.selectById(id);
        return R.ok().put("data", anbaoquxiaoguanli);
    }

    /**
     * 前端详情
     */
    @RequestMapping("/detail/{id}")
    public R detail(@PathVariable("id") Long id){
        AnbaoquxiaoguanliEntity anbaoquxiaoguanli = anbaoquxiaoguanliService.selectById(id);
        return R.ok().put("data", anbaoquxiaoguanli);
    }
    



    /**
     * 后端保存
     */
    @RequestMapping("/save")
    public R save(@RequestBody AnbaoquxiaoguanliEntity anbaoquxiaoguanli, HttpServletRequest request){
    	anbaoquxiaoguanli.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(anbaoquxiaoguanli);
        anbaoquxiaoguanliService.insert(anbaoquxiaoguanli);
        return R.ok();
    }
    
    /**
     * 前端保存
     */
    @RequestMapping("/add")
    public R add(@RequestBody AnbaoquxiaoguanliEntity anbaoquxiaoguanli, HttpServletRequest request){
    	anbaoquxiaoguanli.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
    	//ValidatorUtils.validateEntity(anbaoquxiaoguanli);
        anbaoquxiaoguanliService.insert(anbaoquxiaoguanli);
        return R.ok();
    }

    /**
     * 修改
     */
    @RequestMapping("/update")
    public R update(@RequestBody AnbaoquxiaoguanliEntity anbaoquxiaoguanli, HttpServletRequest request){
        //ValidatorUtils.validateEntity(anbaoquxiaoguanli);
        anbaoquxiaoguanliService.updateById(anbaoquxiaoguanli);//全部更新
        return R.ok();
    }
    

    /**
     * 删除
     */
    @RequestMapping("/delete")
    public R delete(@RequestBody Long[] ids){
        anbaoquxiaoguanliService.deleteBatchIds(Arrays.asList(ids));
        return R.ok();
    }
    
    /**
     * 提醒接口
     */
	@RequestMapping("/remind/{columnName}/{type}")
	public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request, 
						 @PathVariable("type") String type,@RequestParam Map<String, Object> map) {
		map.put("column", columnName);
		map.put("type", type);
		
		if(type.equals("2")) {
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
			Calendar c = Calendar.getInstance();
			Date remindStartDate = null;
			Date remindEndDate = null;
			if(map.get("remindstart")!=null) {
				Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
				c.setTime(new Date()); 
				c.add(Calendar.DAY_OF_MONTH,remindStart);
				remindStartDate = c.getTime();
				map.put("remindstart", sdf.format(remindStartDate));
			}
			if(map.get("remindend")!=null) {
				Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
				c.setTime(new Date());
				c.add(Calendar.DAY_OF_MONTH,remindEnd);
				remindEndDate = c.getTime();
				map.put("remindend", sdf.format(remindEndDate));
			}
		}
		
		Wrapper<AnbaoquxiaoguanliEntity> wrapper = new EntityWrapper<AnbaoquxiaoguanliEntity>();
		if(map.get("remindstart")!=null) {
			wrapper.ge(columnName, map.get("remindstart"));
		}
		if(map.get("remindend")!=null) {
			wrapper.le(columnName, map.get("remindend"));
		}

		String tableName = request.getSession().getAttribute("tableName").toString();
		if(tableName.equals("wuzhu")) {
			wrapper.eq("wuzhuzhanghao", (String)request.getSession().getAttribute("username"));
		}

		int count = anbaoquxiaoguanliService.selectCount(wrapper);
		return R.ok().put("count", count);
	}
	


}

论文参考

在这里插入图片描述

目 录
第1章 绪论 1
1.1 课题背景 1
1.2 课题意义 1
1.3 研究内容 2
第2章 开发环境与技术 3
2.1 MYSQL数据库 3
2.2 JSP技术 3
2.3 SpringBoot框架 4
第3章 系统分析 5
3.1 可行性分析 5
3.1.1 技术可行性 5
3.1.2 经济可行性 5
3.1.3 操作可行性 5
3.2 系统流程 6
3.2.1 操作流程 6
3.2.2 登录流程 6
3.2.3 删除信息流程 7
3.2.4 添加信息流程 8
3.3 性能需求 8
3.4 功能需求 9
第4章 系统设计 13
4.1 设计原则 13
4.2 功能结构设计 13
4.3 数据库设计 16
4.3.1 数据库概念设计 16
4.3.2 数据库物理设计 19
第5章 系统实现 26
5.1 管理员功能实现 26
5.1.1 屋主管理 26
5.1.2 房屋信息管理 26
5.1.3 房屋租赁公告 27
5.2 屋主功能实现 27
5.2.1 租用订单管理 27
5.2.2 房屋信息管理 28
5.2.3 保洁管理 28
5.3 用户功能实现 29
5.3.1 房屋信息 29
5.3.2 租用订单管理 30
5.3.3 取消订单管理 30
第6章 系统测试 31
6.1 功能测试 31
6.1.1 登录功能测试 31
6.1.2 修改密码功能测试 32
6.3 测试结果 32
结 论 33
致 谢 34
参考文献 35

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

q_2781179521

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值