为小区物业开发一个停车位租赁系统
Posted 编程指南针
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了为小区物业开发一个停车位租赁系统相关的知识,希望对你有一定的参考价值。
项目编号:BS-XX-020
本系统基于SSM(spring+springmvc+mybatis)框架实现开发,前端基于BootStrap框架实现,数据库采用mysql,开发工具为IDEA或ECLIPSE。
本系统功能完整,界面简洁大方,运行无误,比较适合做毕业设计和课程设计使用
本系统主要有两个角色,一个是物业管理员,一个是租赁方:
物业管理员登陆:可以实现停车位信息管理,租赁和合同信息管理,申请租赁车位管理,租金管理,日程管理,租赁用户管理,故障报修管理。
租客登陆:可以查询停车位信息,申请租赁,管理个人租赁信息,申请退租,管理租金,故障报修,完善个人信息。
部分功能展示如下:
登陆地址:http://localhost:8080/parkMaster/login.action admin / 123456
- 物业车位管理员登陆
登陆页面
停车位信息管理
添加停车位
租赁管理
退租列表
租赁合同
查看申核租赁申请
签订合同
故障处理
租金管理
日程管理
账户管理:手动在 user表中添加租赁用户
二,租客登陆进入
租赁申请管理
交租管理
故障报修
个人信息完善
页面太多,就不一一展示,本系统功能完整,界面简洁大方,运行无误,比较适合做毕业设计和课程设计使用。
package controller;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import Pojo.User;
import service.UserService;
@Controller
public class UserController
@Autowired
private UserService userService;
@RequestMapping("/login")
public String userList() throws Exception
return "login";
@RequestMapping("/logincheck")
public String login(User user,Model model,HttpSession httpSession) throws Exception
User user1=userService.login(user);
if(user1!=null)
httpSession.setAttribute("user", user1);
if(user1.getType().equals("zuke"))
return "zuke/main";
else
return "admin/main1";
else
String error="error";
model.addAttribute("error", error);
return "login";
@RequestMapping("/toindex")
public String toindex(Model model) throws Exception
return "admin/index";
package controller;
import java.util.List;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import com.fasterxml.jackson.databind.util.JSONPObject;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import Pojo.Apply;
import Pojo.Hetong;
import Pojo.User;
import Pojo.Userlist;
import Pojo.Zulist;
import service.UserlistService;
import service.ZulistService;
@Controller
@RequestMapping("/zulist")
public class ZulistController
@Autowired
private ZulistService zulistService;
@Autowired
private UserlistService userlistService;
//跳到增添合同的页面
@RequestMapping("/toaddhetong")
public String toaddhetong(Model model,String house_id)
Hetong hetong=new Hetong();
hetong.setHouse_id(house_id);
model.addAttribute("hetong", hetong);
model.addAttribute("mainPage", "addhetong.jsp");
return "admin/main1";
//管理员查看所有在租列表
@RequestMapping("/findzulist")
public String findzulist(Model model,@RequestParam(required=false,defaultValue="1") Integer page,
@RequestParam(required=false,defaultValue="10") Integer pageSize) throws Exception
PageHelper.startPage(page, pageSize);
List<Zulist> zulist=zulistService.findzuuserlist();
PageInfo<Zulist> p=new PageInfo<Zulist>(zulist);
model.addAttribute("p", p);
model.addAttribute("zulist", zulist);
model.addAttribute("mainPage", "zulist.jsp");
return "admin/main1";
//查看我的在租列表
@RequestMapping("/myzulist")
public String myzulist(Model model,HttpSession httpSession,@RequestParam(required=false,defaultValue="1") Integer page,
@RequestParam(required=false,defaultValue="10") Integer pageSize) throws Exception
User user1= (User) httpSession.getAttribute("user");
Userlist userlist=userlistService.findhasuserlist(user1.getId());
PageHelper.startPage(page, pageSize);
List<Userlist> list=userlistService.getUserzuList(userlist.getId());
PageInfo<Userlist> p=new PageInfo<Userlist>(list);
model.addAttribute("userlistzu", list);
model.addAttribute("p", p);
model.addAttribute("mainPage", "myzulist.jsp");
return "zuke/main";
package controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import Pojo.Houselist;
import Pojo.Schedule;
import service.ScheduleService;
@Controller
@RequestMapping("/schedule")
public class ScheduleController
@Autowired
private ScheduleService scheduleService;
@RequestMapping("/selectAll")
public String selectAll(Model model ,@RequestParam(required=false,defaultValue="1") Integer page,
@RequestParam(required=false,defaultValue="2") Integer pageSize)
PageHelper.startPage(page, pageSize);
List<Schedule> schedule=scheduleService.selectAll();
PageInfo<Schedule> p=new PageInfo<Schedule>(schedule);
model.addAttribute("schedule", schedule);
model.addAttribute("p", p);
model.addAttribute("mainPage", "schedule.jsp");
return "admin/main1";
@RequestMapping("/deleteschedule")
public String deleteschedule(Integer id)
scheduleService.deleteschedule(id);
return "redirect:selectAll.action";
@RequestMapping("/insertschedule")
public String insertschedule(Schedule schedule,Model model)
scheduleService.insertschedule(schedule);
return "redirect:selectAll.action";
@RequestMapping("/updateschedule")
public String updateschedule(Schedule schedule,Model model)
scheduleService.updateschedule(schedule);
model.addAttribute("error", "更新成功");
model.addAttribute("schedule", schedule);
model.addAttribute("mainPage", "updateschedule.jsp");
return "admin/main1";
@RequestMapping("/toinsert")
public String toinsert(Model model)
model.addAttribute("mainPage", "addschedule.jsp");
return "admin/main1";
@RequestMapping("/toupdate")
public String toupdate(Model model,Integer id)
Schedule schedule=scheduleService.selectbyid(id);
model.addAttribute("schedule", schedule);
model.addAttribute("mainPage", "updateschedule.jsp");
return "admin/main1";
package controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import Pojo.Houselist;
import service.HouselistService;
@Controller
public class HoustlistController
@Autowired
private HouselistService houselistService;
@RequestMapping("/houselist")
public String houselist(Model model ,@RequestParam(required=false,defaultValue="1") Integer page,
@RequestParam(required=false,defaultValue="10") Integer pageSize)
PageHelper.startPage(page, pageSize);
List<Houselist> houselist=houselistService.selectAll();
PageInfo<Houselist> p=new PageInfo<Houselist>(houselist);
model.addAttribute("p", p);
model.addAttribute("houselist",houselist);
model.addAttribute("mainPage","houselist.jsp");
return "zuke/main";
@RequestMapping("/ahouselist")
public String ahouselist(Model model ,@RequestParam(required=false,defaultValue="1") Integer page,
@RequestParam(required=false,defaultValue="10") Integer pageSize)
PageHelper.startPage(page, pageSize);
List<Houselist> houselist=houselistService.selectAll();
PageInfo<Houselist> p=new PageInfo<Houselist>(houselist);
model.addAttribute("p", p);
model.addAttribute("houselist",houselist);
model.addAttribute("mainPage","ahouselist.jsp");
return "admin/main1";
@RequestMapping("/addhouse")
public String addhouse(Model model ,Houselist houselist)
String houseid=houselist.getHouseid();
Houselist houselist1=houselistService.findhouseid(houseid);
if(houselist1!=null)
model.addAttribute("error","该停车位id已存在");
model.addAttribute("houselist",houselist);
model.addAttribute("mainPage","addhouse.jsp");
return "admin/main1";
else
model.addAttribute("error","添加成功");
houselistService.inserthouse(houselist);
model.addAttribute("houselist",houselist);
model.addAttribute("mainPage","addhouse.jsp");
return "admin/main1";
@RequestMapping("/toaddhouse")
public String toaddhoust(Model model)
model.addAttribute("mainPage","addhouse.jsp");
return "admin/main1";
@RequestMapping("/deletehouse")
public String deletehouse(Integer id)
houselistService.deletehouse(id);
return "redirect:ahouselist.action";
@RequestMapping("/toahouselist")
public String toahouselist()
return "ahouselist.action";
@RequestMapping("/findid")
public String findid(Integer id,Model model)
Houselist list=houselistService.findid(id);
model.addAttribute("houselist",list);
model.addAttribute("mainPage", "changehouse.jsp");
return "admin/main1";
@RequestMapping("/findhouseidupdate")
public String findhouseidupdate(Houselist houselist,Model model)
Houselist list=houselistService.findhouseidupdate(houselist);
if(list!=null)
model.addAttribute("houselist",houselist);
model.addAttribute("mainPage", "changehouse.jsp");
model.addAttribute("error","该停车位id已存在");
return "admin/main1";
else
houselistService.updatehouse(houselist);
model.addAttribute("houselist",houselist);
model.addAttribute("mainPage", "changehouse.jsp");
model.addAttribute("error","更新成功");
return "admin/main1";
以上是关于为小区物业开发一个停车位租赁系统的主要内容,如果未能解决你的问题,请参考以下文章
计算机毕业设计-物业管理系统代码-基于SSM的智能小区物业系统代码-java社区物业水电缴费系统代码
Java项目:小区物业管理系统(java+Springboot+ssm+mysql+maven+jsp)