基于SSM的“房屋租赁系统”的设计与实现(源码+数据库+文档+PPT)
-
开发语言:Java
-
数据库:MySQL
-
技术:SSM,JSP
-
工具:IDEA/Ecilpse、Navicat、Maven
系统展示
房屋租赁系统首页
管理员后台管理页面
报告故障管理页面
房东后台管理页面
预约看房页面
退房申请管理页面
摘要
本次是基于SSM框架技术来对于租房行业进行深入了解,通过对租房行业的现状,未来发展以及现再存在的问题等进行分析,总结出本次开发程序的必要性,通过搭建一款房屋租赁系统来实现房产新闻的在线推广,房东、租户的在线注册以及在线预约开放、交流等功能,为租户与房东通过线上来搭建一个快速交流的平台,实现很好的线上化撮合平台的作用。本次的系统开发使用了SSM框架以及JSP为主开发工具,通过eclipse开发软件工具来进行整体的内容开发。数据库选择以MySQL作为本次的数据库管理工具。通过本次的系统开发最终实现了需求满足,运行稳定。
研究背景和意义
计算机的应用和发展带动着全球变革,现在人们在日常的工作与生活中使用计算机已经成为了一家能非常普遍的事情,通过计算机为人们的正常生活带来了极大的便利,计算机与网络的结合一步步的将人们的生活推向更好的发展平台。而随着我国的城市化进程不断发展,城市的面积越来越大,城市中的住宅越来越多,我国大量的人口也都从县村涌向城市,城市的房地产行业不断的发展壮大,而与之配套的房屋租赁业务也随之不断发展。房屋租赁是一项较为传统、历史悠久的行业,实际该行业的发展中对于信息化的利用并不充分,大多通过纸质、计算机文档等方式来进行信息的记录,这种记录方式十分繁琐,且人工记录容易出错,并且档案丢失的概率也较大,面对现在日益高涨的租房需求,房屋租赁行业势必要加强对计算机与网络信息化的应用,才能更好地面对市场冲击,实现更好的经营成长。现在我国一二线城市的房价居高,且购买的门槛较高,使得很多流动人口会通过租房来解决常驻问题,而如何获得租房信息,通过网络化的租赁系统可以更好的帮助有租房需求的人们在线上来对房源信息进行查看、筛选,在线来进行预约看房,甚至可以实现在线签约租赁合同、线上付款等功能。通过线上交流,相对于线下的交流方式更加方便,可以解决供需双方大量的时间。
研究现状
国外的房屋租赁市场的发展相对更加成熟,发展的也更加快速。现在国外的房屋中介公司在信息化管理上都形成了非常规范的操作模式,形成了自成体系的管理平台。比如美国的中介公司大多会使用MLS系统来进行与房屋租赁相关的经营活动具体操作,通过这个系统可以将房东、中间商、租客等进行很好的区分管理,使之分工明确,在信息的管理上也更加的具备逻辑性。国外的学者也在不断的在房屋系统的完善上提出一些系的研究内容,例如围绕着房屋租赁再提供配套太阳能租赁、汽车租赁等等。房屋租赁系统是将房屋租赁从线下搬移至线上,在线上能够更好的帮助出租人和承租人明确租赁流程,为租赁过程提速。而且在国外租房的居民占比很高德国租房的人口占据了总人口的50%,所以德国在房屋租赁的价格标准、政策管理上都有严格管理标准,受到法律的保护。
我国由于人口基数大,实际租房的人数并不低,而伴随着城镇化的建设,城市人口的大量增加,房屋租赁的发展也进入了快车道。但是我国的房屋租赁中介公司由于受到经营体量规模偏低、对未来的预见性不强等客观因素影响,在整体经营管理上仍然以传统的手工记录的方式来进行信息的记录,这并不能够满足当下时代的发展需要。在这种背景下,以58同城、贝壳找房等为代表的房屋租赁服务网站的出现,使得人们能够在网上进行租房,形成了更便利的租房条件。但是由于各个网站之间并不共享信息,所以人们在众多网站中都需要注册、登录来查找心仪的房屋,并且网络上的虚假信息也层出不穷,对于这一类信息的管理也并不严格,对于出租、承租双方的信息没有得到很好的保护。
部分源码
@Controller
public class TuifangshenqingController {
@Resource
private TuifangshenqingServer tuifangshenqingService;
@RequestMapping("addTuifangshenqing.do")
public String addTuifangshenqing(HttpServletRequest request,Tuifangshenqing tuifangshenqing,HttpSession session) throws SQLException{
Timestamp time=new Timestamp(System.currentTimeMillis());
tuifangshenqing.setAddtime(time.toString().substring(0, 19));
tuifangshenqingService.add(tuifangshenqing);
db dbo = new db();
//kuabiaogaizhi
session.setAttribute("backxx", "添加成功");session.setAttribute("backurl", request.getHeader("Referer"));return "redirect:postback.jsp";
}
@RequestMapping("addTuifangshenqingqt.do")
public String addTuifangshenqingqt(HttpServletRequest request,Tuifangshenqing tuifangshenqing,HttpSession session) throws SQLException{
Timestamp time=new Timestamp(System.currentTimeMillis());
tuifangshenqing.setAddtime(time.toString().substring(0, 19));
tuifangshenqingService.add(tuifangshenqing);
db dbo = new db();
//kuabiaogaizhi
session.setAttribute("backxx", "添加成功");
session.setAttribute("backurl", request.getHeader("Referer"));
return "redirect:postback.jsp";
}
// 处理编辑
@RequestMapping("doUpdateTuifangshenqing.do")
public String doUpdateTuifangshenqing(int id,ModelMap map,Tuifangshenqing tuifangshenqing){
tuifangshenqing=tuifangshenqingService.getById(id);
map.put("tuifangshenqing", tuifangshenqing);
return "tuifangshenqing_updt";
}
// 后台详细
@RequestMapping("tuifangshenqingDetail.do")
public String tuifangshenqingDetail(int id,ModelMap map,Tuifangshenqing tuifangshenqing){
tuifangshenqing=tuifangshenqingService.getById(id);
map.put("tuifangshenqing", tuifangshenqing);
return "tuifangshenqing_detail";
}
// 前台详细
@RequestMapping("tfsqDetail.do")
public String tfsqDetail(int id,ModelMap map,Tuifangshenqing tuifangshenqing){
tuifangshenqing=tuifangshenqingService.getById(id);
map.put("tuifangshenqing", tuifangshenqing);
return "tuifangshenqingdetail";
}
//
@RequestMapping("updateTuifangshenqing.do")
public String updateTuifangshenqing(int id,ModelMap map,Tuifangshenqing tuifangshenqing,HttpServletRequest request,HttpSession session){
tuifangshenqingService.update(tuifangshenqing);
session.setAttribute("backxx", "修改成功");session.setAttribute("backurl", request.getHeader("Referer"));return "redirect:postback.jsp";
}
// 分页查询
@RequestMapping("tuifangshenqingList.do")
public String tuifangshenqingList(@RequestParam(value="page",required=false)String page,
ModelMap map,HttpSession session,Tuifangshenqing tuifangshenqing, String fangwubianhao, String fangwumingcheng, String dizhi, String mianji, String chaoxiang, String zhuangxiuchengdu, String louceng, String fangxing, String jiage, String fangdonghao, String zulinyueshu, String zulinjine, String zulinren, String xingming, String shoujihao, String shenfenzheng, String zulinriqi, String shenqingtuifangriqi1,String shenqingtuifangriqi2, String shenqingneirong, String issh){
if(page==null||page.equals("")){
page="1";
}
PageBean pageBean=new PageBean(Integer.parseInt(page), 8);
Map<String, Object> pmap=new HashMap<String,Object>();
pmap.put("pageno", pageBean.getStart());
pmap.put("pageSize", 8);
if(fangwubianhao==null||fangwubianhao.equals("")){pmap.put("fangwubianhao", null);}else{pmap.put("fangwubianhao", fangwubianhao);}
if(fangwumingcheng==null||fangwumingcheng.equals("")){pmap.put("fangwumingcheng", null);}else{pmap.put("fangwumingcheng", fangwumingcheng);}
if(dizhi==null||dizhi.equals("")){pmap.put("dizhi", null);}else{pmap.put("dizhi", dizhi);}
if(mianji==null||mianji.equals("")){pmap.put("mianji", null);}else{pmap.put("mianji", mianji);}
if(chaoxiang==null||chaoxiang.equals("")){pmap.put("chaoxiang", null);}else{pmap.put("chaoxiang", chaoxiang);}
if(zhuangxiuchengdu==null||zhuangxiuchengdu.equals("")){pmap.put("zhuangxiuchengdu", null);}else{pmap.put("zhuangxiuchengdu", zhuangxiuchengdu);}
if(louceng==null||louceng.equals("")){pmap.put("louceng", null);}else{pmap.put("louceng", louceng);}
if(fangxing==null||fangxing.equals("")){pmap.put("fangxing", null);}else{pmap.put("fangxing", fangxing);}
if(jiage==null||jiage.equals("")){pmap.put("jiage", null);}else{pmap.put("jiage", jiage);}
if(fangdonghao==null||fangdonghao.equals("")){pmap.put("fangdonghao", null);}else{pmap.put("fangdonghao", fangdonghao);}
if(zulinyueshu==null||zulinyueshu.equals("")){pmap.put("zulinyueshu", null);}else{pmap.put("zulinyueshu", zulinyueshu);}
if(zulinjine==null||zulinjine.equals("")){pmap.put("zulinjine", null);}else{pmap.put("zulinjine", zulinjine);}
if(zulinren==null||zulinren.equals("")){pmap.put("zulinren", null);}else{pmap.put("zulinren", zulinren);}
if(xingming==null||xingming.equals("")){pmap.put("xingming", null);}else{pmap.put("xingming", xingming);}
if(shoujihao==null||shoujihao.equals("")){pmap.put("shoujihao", null);}else{pmap.put("shoujihao", shoujihao);}
if(shenfenzheng==null||shenfenzheng.equals("")){pmap.put("shenfenzheng", null);}else{pmap.put("shenfenzheng", shenfenzheng);}
if(zulinriqi==null||zulinriqi.equals("")){pmap.put("zulinriqi", null);}else{pmap.put("zulinriqi", zulinriqi);}
if(shenqingtuifangriqi1==null||shenqingtuifangriqi1.equals("")){pmap.put("shenqingtuifangriqi1", null);}else{pmap.put("shenqingtuifangriqi1", shenqingtuifangriqi1);}
if(shenqingtuifangriqi2==null||shenqingtuifangriqi2.equals("")){pmap.put("shenqingtuifangriqi2", null);}else{pmap.put("shenqingtuifangriqi2", shenqingtuifangriqi2);}
if(shenqingneirong==null||shenqingneirong.equals("")){pmap.put("shenqingneirong", null);}else{pmap.put("shenqingneirong", shenqingneirong);}
int total=tuifangshenqingService.getCount(pmap);
pageBean.setTotal(total);
List<Tuifangshenqing> list=tuifangshenqingService.getByPage(pmap);
map.put("page", pageBean);
map.put("list", list);
session.setAttribute("p", 1);
return "tuifangshenqing_list";
}
@RequestMapping("tuifangshenqingList3.do")
public String tuifangshenqingList3(@RequestParam(value="page",required=false)String page,
ModelMap map,HttpSession session,Tuifangshenqing tuifangshenqing, String fangwubianhao, String fangwumingcheng, String dizhi, String mianji, String chaoxiang, String zhuangxiuchengdu, String louceng, String fangxing, String jiage, String fangdonghao, String zulinyueshu, String zulinjine, String zulinren, String xingming, String shoujihao, String shenfenzheng, String zulinriqi, String shenqingtuifangriqi1,String shenqingtuifangriqi2, String shenqingneirong, String issh,HttpServletRequest request){
/*if(session.getAttribute("user")==null){
return "login";
}*/
if(page==null||page.equals("")){
page="1";
}
PageBean pageBean=new PageBean(Integer.parseInt(page), 15);
Map<String, Object> pmap=new HashMap<String,Object>();
pmap.put("pageno", pageBean.getStart());
pmap.put("pageSize", 15);
pmap.put("fangdonghao", (String)request.getSession().getAttribute("username"));
if(fangwubianhao==null||fangwubianhao.equals("")){pmap.put("fangwubianhao", null);}else{pmap.put("fangwubianhao", fangwubianhao);}
if(fangwumingcheng==null||fangwumingcheng.equals("")){pmap.put("fangwumingcheng", null);}else{pmap.put("fangwumingcheng", fangwumingcheng);}
if(dizhi==null||dizhi.equals("")){pmap.put("dizhi", null);}else{pmap.put("dizhi", dizhi);}
if(mianji==null||mianji.equals("")){pmap.put("mianji", null);}else{pmap.put("mianji", mianji);}
if(chaoxiang==null||chaoxiang.equals("")){pmap.put("chaoxiang", null);}else{pmap.put("chaoxiang", chaoxiang);}
if(zhuangxiuchengdu==null||zhuangxiuchengdu.equals("")){pmap.put("zhuangxiuchengdu", null);}else{pmap.put("zhuangxiuchengdu", zhuangxiuchengdu);}
if(louceng==null||louceng.equals("")){pmap.put("louceng", null);}else{pmap.put("louceng", louceng);}
if(fangxing==null||fangxing.equals("")){pmap.put("fangxing", null);}else{pmap.put("fangxing", fangxing);}
if(jiage==null||jiage.equals("")){pmap.put("jiage", null);}else{pmap.put("jiage", jiage);}
if(zulinyueshu==null||zulinyueshu.equals("")){pmap.put("zulinyueshu", null);}else{pmap.put("zulinyueshu", zulinyueshu);}
if(zulinjine==null||zulinjine.equals("")){pmap.put("zulinjine", null);}else{pmap.put("zulinjine", zulinjine);}
if(xingming==null||xingming.equals("")){pmap.put("xingming", null);}else{pmap.put("xingming", xingming);}
if(shoujihao==null||shoujihao.equals("")){pmap.put("shoujihao", null);}else{pmap.put("shoujihao", shoujihao);}
if(shenfenzheng==null||shenfenzheng.equals("")){pmap.put("shenfenzheng", null);}else{pmap.put("shenfenzheng", shenfenzheng);}
if(zulinriqi==null||zulinriqi.equals("")){pmap.put("zulinriqi", null);}else{pmap.put("zulinriqi", zulinriqi);}
if(shenqingtuifangriqi1==null||shenqingtuifangriqi1.equals("")){pmap.put("shenqingtuifangriqi1", null);}else{pmap.put("shenqingtuifangriqi1", shenqingtuifangriqi1);}
if(shenqingtuifangriqi2==null||shenqingtuifangriqi2.equals("")){pmap.put("shenqingtuifangriqi2", null);}else{pmap.put("shenqingtuifangriqi2", shenqingtuifangriqi2);}
if(shenqingneirong==null||shenqingneirong.equals("")){pmap.put("shenqingneirong", null);}else{pmap.put("shenqingneirong", shenqingneirong);}
int total=tuifangshenqingService.getCount(pmap);
pageBean.setTotal(total);
List<Tuifangshenqing> list=tuifangshenqingService.getByPage(pmap);
map.put("page", pageBean);
map.put("list", list);
session.setAttribute("p", 1);
return "tuifangshenqing_list3";
}
@RequestMapping("tuifangshenqingList2.do")
public String tuifangshenqingList2(@RequestParam(value="page",required=false)String page,
ModelMap map,HttpSession session,Tuifangshenqing tuifangshenqing, String fangwubianhao, String fangwumingcheng, String dizhi, String mianji, String chaoxiang, String zhuangxiuchengdu, String louceng, String fangxing, String jiage, String fangdonghao, String zulinyueshu, String zulinjine, String zulinren, String xingming, String shoujihao, String shenfenzheng, String zulinriqi, String shenqingtuifangriqi1,String shenqingtuifangriqi2, String shenqingneirong, String issh,HttpServletRequest request){
/*if(session.getAttribute("user")==null){
return "login";
}*/
if(page==null||page.equals("")){
page="1";
}
PageBean pageBean=new PageBean(Integer.parseInt(page), 15);
Map<String, Object> pmap=new HashMap<String,Object>();
pmap.put("pageno", pageBean.getStart());
pmap.put("pageSize", 15);
pmap.put("zulinren", (String)request.getSession().getAttribute("username"));
if(fangwubianhao==null||fangwubianhao.equals("")){pmap.put("fangwubianhao", null);}else{pmap.put("fangwubianhao", fangwubianhao);}
if(fangwumingcheng==null||fangwumingcheng.equals("")){pmap.put("fangwumingcheng", null);}else{pmap.put("fangwumingcheng", fangwumingcheng);}
if(dizhi==null||dizhi.equals("")){pmap.put("dizhi", null);}else{pmap.put("dizhi", dizhi);}
if(mianji==null||mianji.equals("")){pmap.put("mianji", null);}else{pmap.put("mianji", mianji);}
if(chaoxiang==null||chaoxiang.equals("")){pmap.put("chaoxiang", null);}else{pmap.put("chaoxiang", chaoxiang);}
if(zhuangxiuchengdu==null||zhuangxiuchengdu.equals("")){pmap.put("zhuangxiuchengdu", null);}else{pmap.put("zhuangxiuchengdu", zhuangxiuchengdu);}
if(louceng==null||louceng.equals("")){pmap.put("louceng", null);}else{pmap.put("louceng", louceng);}
if(fangxing==null||fangxing.equals("")){pmap.put("fangxing", null);}else{pmap.put("fangxing", fangxing);}
if(jiage==null||jiage.equals("")){pmap.put("jiage", null);}else{pmap.put("jiage", jiage);}
if(zulinyueshu==null||zulinyueshu.equals("")){pmap.put("zulinyueshu", null);}else{pmap.put("zulinyueshu", zulinyueshu);}
if(zulinjine==null||zulinjine.equals("")){pmap.put("zulinjine", null);}else{pmap.put("zulinjine", zulinjine);}
if(xingming==null||xingming.equals("")){pmap.put("xingming", null);}else{pmap.put("xingming", xingming);}
if(shoujihao==null||shoujihao.equals("")){pmap.put("shoujihao", null);}else{pmap.put("shoujihao", shoujihao);}
if(shenfenzheng==null||shenfenzheng.equals("")){pmap.put("shenfenzheng", null);}else{pmap.put("shenfenzheng", shenfenzheng);}
if(zulinriqi==null||zulinriqi.equals("")){pmap.put("zulinriqi", null);}else{pmap.put("zulinriqi", zulinriqi);}
if(shenqingtuifangriqi1==null||shenqingtuifangriqi1.equals("")){pmap.put("shenqingtuifangriqi1", null);}else{pmap.put("shenqingtuifangriqi1", shenqingtuifangriqi1);}
if(shenqingtuifangriqi2==null||shenqingtuifangriqi2.equals("")){pmap.put("shenqingtuifangriqi2", null);}else{pmap.put("shenqingtuifangriqi2", shenqingtuifangriqi2);}
if(shenqingneirong==null||shenqingneirong.equals("")){pmap.put("shenqingneirong", null);}else{pmap.put("shenqingneirong", shenqingneirong);}
int total=tuifangshenqingService.getCount(pmap);
pageBean.setTotal(total);
List<Tuifangshenqing> list=tuifangshenqingService.getByPage(pmap);
map.put("page", pageBean);
map.put("list", list);
session.setAttribute("p", 1);
return "tuifangshenqing_list2";
}
@RequestMapping("tfsqList.do")
public String tfsqList(@RequestParam(value="page",required=false)String page,
ModelMap map,HttpSession session,Tuifangshenqing tuifangshenqing, String fangwubianhao, String fangwumingcheng, String dizhi, String mianji, String chaoxiang, String zhuangxiuchengdu, String louceng, String fangxing, String jiage, String fangdonghao, String zulinyueshu, String zulinjine, String zulinren, String xingming, String shoujihao, String shenfenzheng, String zulinriqi, String shenqingtuifangriqi1,String shenqingtuifangriqi2, String shenqingneirong, String issh){
if(page==null||page.equals("")){
page="1";
}
PageBean pageBean=new PageBean(Integer.parseInt(page), 8);
Map<String, Object> pmap=new HashMap<String,Object>();
pmap.put("pageno", pageBean.getStart());
pmap.put("pageSize", 8);
if(fangwubianhao==null||fangwubianhao.equals("")){pmap.put("fangwubianhao", null);}else{pmap.put("fangwubianhao", fangwubianhao);}
if(fangwumingcheng==null||fangwumingcheng.equals("")){pmap.put("fangwumingcheng", null);}else{pmap.put("fangwumingcheng", fangwumingcheng);}
if(dizhi==null||dizhi.equals("")){pmap.put("dizhi", null);}else{pmap.put("dizhi", dizhi);}
if(mianji==null||mianji.equals("")){pmap.put("mianji", null);}else{pmap.put("mianji", mianji);}
if(chaoxiang==null||chaoxiang.equals("")){pmap.put("chaoxiang", null);}else{pmap.put("chaoxiang", chaoxiang);}
if(zhuangxiuchengdu==null||zhuangxiuchengdu.equals("")){pmap.put("zhuangxiuchengdu", null);}else{pmap.put("zhuangxiuchengdu", zhuangxiuchengdu);}
if(louceng==null||louceng.equals("")){pmap.put("louceng", null);}else{pmap.put("louceng", louceng);}
if(fangxing==null||fangxing.equals("")){pmap.put("fangxing", null);}else{pmap.put("fangxing", fangxing);}
if(jiage==null||jiage.equals("")){pmap.put("jiage", null);}else{pmap.put("jiage", jiage);}
if(fangdonghao==null||fangdonghao.equals("")){pmap.put("fangdonghao", null);}else{pmap.put("fangdonghao", fangdonghao);}
if(zulinyueshu==null||zulinyueshu.equals("")){pmap.put("zulinyueshu", null);}else{pmap.put("zulinyueshu", zulinyueshu);}
if(zulinjine==null||zulinjine.equals("")){pmap.put("zulinjine", null);}else{pmap.put("zulinjine", zulinjine);}
if(zulinren==null||zulinren.equals("")){pmap.put("zulinren", null);}else{pmap.put("zulinren", zulinren);}
if(xingming==null||xingming.equals("")){pmap.put("xingming", null);}else{pmap.put("xingming", xingming);}
if(shoujihao==null||shoujihao.equals("")){pmap.put("shoujihao", null);}else{pmap.put("shoujihao", shoujihao);}
if(shenfenzheng==null||shenfenzheng.equals("")){pmap.put("shenfenzheng", null);}else{pmap.put("shenfenzheng", shenfenzheng);}
if(zulinriqi==null||zulinriqi.equals("")){pmap.put("zulinriqi", null);}else{pmap.put("zulinriqi", zulinriqi);}
if(shenqingtuifangriqi1==null||shenqingtuifangriqi1.equals("")){pmap.put("shenqingtuifangriqi1", null);}else{pmap.put("shenqingtuifangriqi1", shenqingtuifangriqi1);}
if(shenqingtuifangriqi2==null||shenqingtuifangriqi2.equals("")){pmap.put("shenqingtuifangriqi2", null);}else{pmap.put("shenqingtuifangriqi2", shenqingtuifangriqi2);}
if(shenqingneirong==null||shenqingneirong.equals("")){pmap.put("shenqingneirong", null);}else{pmap.put("shenqingneirong", shenqingneirong);}
int total=tuifangshenqingService.getCount(pmap);
pageBean.setTotal(total);
List<Tuifangshenqing> list=tuifangshenqingService.getByPage(pmap);
map.put("page", pageBean);
map.put("list", list);
session.setAttribute("p", 1);
return "tuifangshenqinglist";
}
@RequestMapping("tfsqListtp.do")
public String tfsqListtp(@RequestParam(value="page",required=false)String page,
ModelMap map,HttpSession session,Tuifangshenqing tuifangshenqing, String fangwubianhao, String fangwumingcheng, String dizhi, String mianji, String chaoxiang, String zhuangxiuchengdu, String louceng, String fangxing, String jiage, String fangdonghao, String zulinyueshu, String zulinjine, String zulinren, String xingming, String shoujihao, String shenfenzheng, String zulinriqi, String shenqingtuifangriqi1,String shenqingtuifangriqi2, String shenqingneirong, String issh){
if(page==null||page.equals("")){
page="1";
}
PageBean pageBean=new PageBean(Integer.parseInt(page), 8);
Map<String, Object> pmap=new HashMap<String,Object>();
pmap.put("pageno", pageBean.getStart());
pmap.put("pageSize", 8);
if(fangwubianhao==null||fangwubianhao.equals("")){pmap.put("fangwubianhao", null);}else{pmap.put("fangwubianhao", fangwubianhao);}
if(fangwumingcheng==null||fangwumingcheng.equals("")){pmap.put("fangwumingcheng", null);}else{pmap.put("fangwumingcheng", fangwumingcheng);}
if(dizhi==null||dizhi.equals("")){pmap.put("dizhi", null);}else{pmap.put("dizhi", dizhi);}
if(mianji==null||mianji.equals("")){pmap.put("mianji", null);}else{pmap.put("mianji", mianji);}
if(chaoxiang==null||chaoxiang.equals("")){pmap.put("chaoxiang", null);}else{pmap.put("chaoxiang", chaoxiang);}
if(zhuangxiuchengdu==null||zhuangxiuchengdu.equals("")){pmap.put("zhuangxiuchengdu", null);}else{pmap.put("zhuangxiuchengdu", zhuangxiuchengdu);}
if(louceng==null||louceng.equals("")){pmap.put("louceng", null);}else{pmap.put("louceng", louceng);}
if(fangxing==null||fangxing.equals("")){pmap.put("fangxing", null);}else{pmap.put("fangxing", fangxing);}
if(jiage==null||jiage.equals("")){pmap.put("jiage", null);}else{pmap.put("jiage", jiage);}
if(fangdonghao==null||fangdonghao.equals("")){pmap.put("fangdonghao", null);}else{pmap.put("fangdonghao", fangdonghao);}
if(zulinyueshu==null||zulinyueshu.equals("")){pmap.put("zulinyueshu", null);}else{pmap.put("zulinyueshu", zulinyueshu);}
if(zulinjine==null||zulinjine.equals("")){pmap.put("zulinjine", null);}else{pmap.put("zulinjine", zulinjine);}
if(zulinren==null||zulinren.equals("")){pmap.put("zulinren", null);}else{pmap.put("zulinren", zulinren);}
if(xingming==null||xingming.equals("")){pmap.put("xingming", null);}else{pmap.put("xingming", xingming);}
if(shoujihao==null||shoujihao.equals("")){pmap.put("shoujihao", null);}else{pmap.put("shoujihao", shoujihao);}
if(shenfenzheng==null||shenfenzheng.equals("")){pmap.put("shenfenzheng", null);}else{pmap.put("shenfenzheng", shenfenzheng);}
if(zulinriqi==null||zulinriqi.equals("")){pmap.put("zulinriqi", null);}else{pmap.put("zulinriqi", zulinriqi);}
if(shenqingtuifangriqi1==null||shenqingtuifangriqi1.equals("")){pmap.put("shenqingtuifangriqi1", null);}else{pmap.put("shenqingtuifangriqi1", shenqingtuifangriqi1);}
if(shenqingtuifangriqi2==null||shenqingtuifangriqi2.equals("")){pmap.put("shenqingtuifangriqi2", null);}else{pmap.put("shenqingtuifangriqi2", shenqingtuifangriqi2);}
if(shenqingneirong==null||shenqingneirong.equals("")){pmap.put("shenqingneirong", null);}else{pmap.put("shenqingneirong", shenqingneirong);}
int total=tuifangshenqingService.getCount(pmap);
pageBean.setTotal(total);
List<Tuifangshenqing> list=tuifangshenqingService.getByPage(pmap);
map.put("page", pageBean);
map.put("list", list);
session.setAttribute("p", 1);
return "tuifangshenqinglisttp";
}
@RequestMapping("deleteTuifangshenqing.do")
public String deleteTuifangshenqing(int id,HttpServletRequest request,HttpSession session){
tuifangshenqingService.delete(id);
session.setAttribute("backxx", "删除成功");session.setAttribute("backurl", request.getHeader("Referer"));return "redirect:postback.jsp";
}
}
结论
房屋租赁行业是现在非常火热的一个行业,随着城市化的不断发展,城市的工作机会不断增加,城市人口不断增长,房屋租赁是对于流动人口解决住宿的最好方式。所以本次通过结合SSM框架,通过以jsp、MySQL等技术来实现一款房屋租赁的系统开发,通过将房屋的租房信息、求租信息等线上化,可以帮助供需双方更快的达成交易,加速推动房屋租赁的行业发展。本次的系统搭建中实现了在线的房屋信息展示、在线预约看房、在线租赁房屋以及退租的功能,并且为租户提供了线上报修的功能,可以为租户提供更多贴心服务,让租户享受到的服务更加全面。