系统使用技术:SSM
前端技术:bootstrap、css、js等
开发工具:idea
数据库:mysql5.7
项目介绍:
该系统为汽车租赁,框架为采用SSH(Struts,Spring,Hibernate),核心功能:前端用户注册登陆后,可以查看汽车详情,挑选成功后,根据租车时间下单,后台管理员登陆后审核订单,用户到店后取车用完后归还,完全交易。除此之外,用户端和管理端还有其它功能。
下面我们来看看功能。
系统首页:
汽车详情
对汽车详细信息进行描述
我的订单
查看个人的订单信息
租车记录
租车历史信息
后台登录
管理员登陆界面
用户管理
对用户进行操作
订单管理
对订单进行操作
车辆管理
对车辆进行操作
代码
登录:
//登录成功进入首页 public String index(){ if(role==1){ //最新车列表 List<Car> newestList =new ArrayList<Car>(); Map<String,Object> alias1 = new HashMap<String,Object>(); String hql1 = "from Car where 1=1 and isDelete=0 "; if(!StringUtils.isEmpty(keyword)){ hql1 += " and carType like :carType"; alias1.put("carType","%" +keyword+ "%"); } hql1 += " order by id desc"; newestList = carService.getByHQL(hql1, alias1); if(newestList!=null && newestList.size()>0){ if(newestList.size()<=8){ ActionContext.getContext().put("newestList", newestList); }else{ ActionContext.getContext().put("newestList", newestList.subList(0, 8)); } }else{ ActionContext.getContext().put("newestList", newestList); } //好车推荐列表 List<Car> recommendList =new ArrayList<Car>(); Map<String,Object> alias2 = new HashMap<String,Object>(); String hql2 = "from Car where 1=1 and isRecommend=1 and isDelete=0 "; if(!StringUtils.isEmpty(keyword)){ hql2 += " and carType like :carType"; alias2.put("carType","%" +keyword+ "%"); } hql2 += " order by id desc"; recommendList = carService.getByHQL(hql2, alias2); if(recommendList!=null && recommendList.size()>0){ if(recommendList.size()<=8){ ActionContext.getContext().put("recommendList", recommendList); }else{ ActionContext.getContext().put("recommendList", recommendList.subList(0, 8)); } }else{ ActionContext.getContext().put("recommendList", recommendList); } //折扣优惠列表 List<Car> discountList =new ArrayList<Car>(); Map<String,Object> alias3 = new HashMap<String,Object>(); String hql3 = "from Car where 1=1 and isDiscount=1 and isDelete=0 "; if(!StringUtils.isEmpty(keyword)){ hql3 += " and carType like :carType"; alias3.put("carType","%" +keyword+ "%"); } hql3 += " order by id desc"; discountList = carService.getByHQL(hql3, alias3); if(discountList!=null && discountList.size()>0){ if(discountList.size()<=8){ ActionContext.getContext().put("discountList", discountList); }else{ ActionContext.getContext().put("discountList", discountList.subList(0, 8)); } }else{ ActionContext.getContext().put("discountList", discountList); } ActionContext.getContext().put("a", keyword); return "userIndex"; }else{ return "manageIndex"; } }
以上就是部分功能展示,从整体上来看,本系统功能是十分完整的,而且也与当前的热点话题关联,界面设计简洁大方,交互友好,数据库设计也很合理,规模适中,比较适合毕业设计和课程设计的相关应用。
好了,今天就到这儿吧,小伙伴们点赞、收藏、评论,一键三连走起呀,下期见~~