大家好!我是程序猿老A,感谢您阅读本文,欢迎一键三连哦。
💞当前专栏:微信小程序毕业设计
精彩专栏推荐👇🏻👇🏻👇🏻
开发运行环境
①前端:微信小程序开发工具
② 后端:Java
- 框架:ssm
- JDK版本:JDK1.8
- 服务器:tomcat7
- 数据库:mysql 5.7
- 数据库工具:Navicat12
- 开发软件:eclipse/myeclipse/idea
- Maven包:Maven3.3.9
- 浏览器:谷歌浏览器
演示视频
前端:
weixin122无中介租房系统-微信端
后端:
weixin122无中介租房系统-服务端
原版高清演示视频-编号:122
https://pan.quark.cn/s/c0c9519df9d4
源码下载地址:
https://download.csdn.net/download/2301_76953549/89089694
论文目录
【如需全文请按文末获取联系】
一、项目简介
本基于微信小程序的无中介租房系统满足了不同用户的功能需求,包括房东、用户以及管理员,下面对这不同用户的功能需求进行简介。
(1)管理员功能分析
管理员可进行后台进行管理,包含个人中心、租客管理、房东管理、房屋信息管理、房屋类型管理、租赁合同管理、租金信息管理和系统管理。
(2)房东功能分析
房东登录后主要功能模块包括房屋信息管理、房屋类型管理、租赁合同管理以及租金信息管理。
(3)租客功能分析
租客注册登录后主要功能模块包括首页、房屋信息、交流区以及我的(租赁合同、租金信息、我的收藏管理、我要发帖、我的发帖)。
二、系统设计
2.1软件功能模块设计
本基于微信小程序的无中介租房系统主要实现了房东功能模块、租客功能模块和管理员功能模块三大部分,系统结构图如图4-1所示。
2.2数据库设计
(1)房屋信息实体E- R图,如图4.4所示
(2)房屋类型信息实体E- R图,如图4.5所示
(4)租客信息实体E- R图,如图4.7所示
(5)房东信息实体E- R图,如图4.8所示
三、系统项目部分截图
3.1微信端功能模块的实现
注册登录界面
没有账号的租客用户可进行注册操作,注册后可进行登录系统,租客注册登录界面展示如图5.1所示。
首页界面
租客登录后可进入首页查看房屋信息,首页界面展示如图5.2所示。
房屋信息界面
租客在房屋信息界面可查看所有房屋信息,并可选择查看详情,房屋信息界面展示如图5.3所示。
3.2服务端功能模块的实现
服务端登录界面
要想进入系统后台对系统进行管理操作,必须进行登录,服务端登录界面展示如图5.7所示。
租客管理界面
管理员登录后可添加、修改和删除租客信息,租客管理界面如图5.8所示。
房东管理界面
管理员在房东管理界面可查看所有房东信息,对已有房东信息可进编辑和删除操作,房东管理界面如图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.ZujinxinxiEntity;
import com.entity.view.ZujinxinxiView;
import com.service.ZujinxinxiService;
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 2021-04-09 22:16:50
*/
@RestController
@RequestMapping("/zujinxinxi")
public class ZujinxinxiController {
@Autowired
private ZujinxinxiService zujinxinxiService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,ZujinxinxiEntity zujinxinxi,
HttpServletRequest request){
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("zuke")) {
zujinxinxi.setYonghuming((String)request.getSession().getAttribute("username"));
}
if(tableName.equals("fangdong")) {
zujinxinxi.setFangdongzhanghao((String)request.getSession().getAttribute("username"));
}
EntityWrapper<ZujinxinxiEntity> ew = new EntityWrapper<ZujinxinxiEntity>();
PageUtils page = zujinxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, zujinxinxi), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,ZujinxinxiEntity zujinxinxi, HttpServletRequest request){
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("zuke")) {
zujinxinxi.setYonghuming((String)request.getSession().getAttribute("username"));
}
if(tableName.equals("fangdong")) {
zujinxinxi.setFangdongzhanghao((String)request.getSession().getAttribute("username"));
}
EntityWrapper<ZujinxinxiEntity> ew = new EntityWrapper<ZujinxinxiEntity>();
PageUtils page = zujinxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, zujinxinxi), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("/lists")
public R list( ZujinxinxiEntity zujinxinxi){
EntityWrapper<ZujinxinxiEntity> ew = new EntityWrapper<ZujinxinxiEntity>();
ew.allEq(MPUtil.allEQMapPre( zujinxinxi, "zujinxinxi"));
return R.ok().put("data", zujinxinxiService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(ZujinxinxiEntity zujinxinxi){
EntityWrapper< ZujinxinxiEntity> ew = new EntityWrapper< ZujinxinxiEntity>();
ew.allEq(MPUtil.allEQMapPre( zujinxinxi, "zujinxinxi"));
ZujinxinxiView zujinxinxiView = zujinxinxiService.selectView(ew);
return R.ok("查询租金信息成功").put("data", zujinxinxiView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
ZujinxinxiEntity zujinxinxi = zujinxinxiService.selectById(id);
return R.ok().put("data", zujinxinxi);
}
/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
ZujinxinxiEntity zujinxinxi = zujinxinxiService.selectById(id);
return R.ok().put("data", zujinxinxi);
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@RequestBody ZujinxinxiEntity zujinxinxi, HttpServletRequest request){
zujinxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(zujinxinxi);
zujinxinxiService.insert(zujinxinxi);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody ZujinxinxiEntity zujinxinxi, HttpServletRequest request){
zujinxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(zujinxinxi);
zujinxinxi.setUserid((Long)request.getSession().getAttribute("userId"));
zujinxinxiService.insert(zujinxinxi);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody ZujinxinxiEntity zujinxinxi, HttpServletRequest request){
//ValidatorUtils.validateEntity(zujinxinxi);
zujinxinxiService.updateById(zujinxinxi);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
zujinxinxiService.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<ZujinxinxiEntity> wrapper = new EntityWrapper<ZujinxinxiEntity>();
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("zuke")) {
wrapper.eq("yonghuming", (String)request.getSession().getAttribute("username"));
}
if(tableName.equals("fangdong")) {
wrapper.eq("fangdongzhanghao", (String)request.getSession().getAttribute("username"));
}
int count = zujinxinxiService.selectCount(wrapper);
return R.ok().put("count", count);
}
}
五、获取源码或论文
如需对应的论文或源码,以及其他定制需求,也可以点我头像查看个人简介联系。