网站建设做网站,wordpress -editor,德州极速网站建设小程序,个人网站毕业设计博主介绍#xff1a;java高级开发#xff0c;从事互联网行业六年#xff0c;熟悉各种主流语言#xff0c;精通java、python、php、爬虫、web开发#xff0c;已经从做了六年的毕业设计程序开发#xff0c;开发过上千套毕业设计程序#xff0c;没有什么华丽的语言#xf… 博主介绍java高级开发从事互联网行业六年熟悉各种主流语言精通java、python、php、爬虫、web开发已经从做了六年的毕业设计程序开发开发过上千套毕业设计程序没有什么华丽的语言只有实实在在的写点程序。 文末获取联系 基于SSM的航空订票系统根据功能设计划分为管理员用户和注册用户从这两种用户的功能所需展开设计管理员对注册用户管理、航班管理、航班时刻管理、通知公告管理、订票管理、退票管理等注册用户主要是注册成功后登录机票查询预定机票退票、管理个人资料、修改密码、查看订票记录、查看退票记录等功能。 管理员功能实现
航班管理页面
管理员管理航班信息添加航班的编号、出发地机场、出发地航站楼、目的地、目的地机场、目的地航站楼、行程时间、座位数、头等舱座位数、头等舱价格、经济舱价格、经济舱座位数然后进行座位的排号添加后可以修改、删除、搜索查看航班信息如图所示 相关代码
public String mgHangList(Model model, QueryVo vo, HttpServletRequest rq, HttpSession httpSession,RequestParam(required false, defaultValue 1) Integer page,RequestParam(required false, defaultValue 10) Integer pageSize) {PageHelper.startPage(page, pageSize);HangExample example new HangExample();example.setOrderByClause(hid desc);example.setDistinct(false);HangExample.Criteria c example.createCriteria();if ((vo.getQname() ! null) !(.equals(vo.getQname()))) {/*c.andHidLike(% vo.getQname() %);*/c.andHnoLike(% vo.getQname() %);c.andHbplaceLike(% vo.getQname() %);c.andHbjichLike(% vo.getQname() %);c.andHblouLike(% vo.getQname() %);c.andHeplaceLike(% vo.getQname() %);c.andHejichLike(% vo.getQname() %);c.andHelouLike(% vo.getQname() %);/*c.andHstatusLike(% vo.getQname() %);*/c.andHtimeLike(% vo.getQname() %);/*c.andHzwnumLike(% vo.getQname() %);c.andHtdczwLike(% vo.getQname() %);c.andHtdcpriceLike(% vo.getQname() %);c.andHjjczwLike(% vo.getQname() %);c.andHjicpriceLike(% vo.getQname() %);c.andHrekLike(% vo.getQname() %);*/}ListHang list hangService.GetList(example);PageInfoHang p new PageInfoHang(list);Integer count hangService.GetCountOfList(example);model.addAttribute(ulist, list);model.addAttribute(count, count);model.addAttribute(p, p);model.addAttribute(vo, vo);return /admin/hang/list;} 注册用户管理页面
管理员对注册用户信息管理查看用户的姓名、账号、性别、电话、邮箱信息、地址并可以搜索、删除用户信息如图所示
相关代码 public String doUserinfoUdt(Model model,Userinfo nsfo, HttpServletRequest rq, HttpSession httpSession) {Userinfo entity userinfoService.GetInfoById(nsfo.getUid());entity.setUlog(nsfo.getUlog());entity.setUpwd(nsfo.getUpwd());userinfoService.Update(entity);model new utils.BaseCls().setReModel(model, 201, , /hyticket/ur/mgUserinfoList.action);return /admin/user/update;public String delUserinfo(Model model, Integer id, HttpServletRequest rq, HttpSession httpSession) {Userinfo entity userinfoService.GetInfoById(id);entity.setUstatus(1);userinfoService.Update(entity);return redirect:mgUserinfoList.action;
航班时刻管理页面
管理员管理航班的时刻信息添加航班、出发地、出发地机场、目的地、目的地机场、出发时间、到达时间、行程时间并可以搜索、修改、删除航班时刻如图所示
代码 public String doVtimeAdd(Model model, Vtime nsfo, HttpServletRequest rq, HttpSession httpSession) {Hang entity hangService.GetInfoById(nsfo.getVthid());nsfo.setVttdczw0(entity.getHtdczw());nsfo.setVtjjczw0(entity.getHjjczw());nsfo.setVtstatus(0);vtimeService.Add(nsfo);VtimeExample example new VtimeExample();example.setOrderByClause(vtid desc);ListVtime list vtimeService.GetList(example);Integer newidlist.get(0).getVtid();HpositionExample expnew HpositionExample();HpositionExample.Criteria cpexp.createCriteria();cp.andZhidEqualTo(entity.getHid());ListHposition lstp hpositionService.GetList(exp);for(int i0; ilstp.size();i){vtpositionService.Add(ety);}
查看订票详细信息页面
管理员查看用户的订票详细如航班、出发地、到达时间、订票数量、总价等信息并可以查看退票情况如图所示 相关代码 public String mgOrderdsList(Model model, QueryVo vo, HttpServletRequest rq, HttpSession httpSession,RequestParam(required false, defaultValue 1) Integer page,RequestParam(required false, defaultValue 10) Integer pageSize) {PageHelper.startPage(page, pageSize);OrderdsExample example new OrderdsExample();example.setOrderByClause(odid desc);example.setDistinct(false);OrderdsExample.Criteria c example.createCriteria();if ((vo.getQname() ! null) !(.equals(vo.getQname()))) {c.andOdtidLike(% vo.getQname() %);c.andOdoidLike(% vo.getQname() %);*/c.andOduidentidLike(% vo.getQname() %);c.andOdutelLike(% vo.getQname() %);c.andOdunameLike(% vo.getQname() %);PageInfoOrderds p new PageInfoOrderds(list);Integer count orderdsService.GetCountOfList(example);model.addAttribute(ulist, list);model.addAttribute(count, count);model.addAttribute(p, p);model.addAttribute(vo, vo);return /admin/Orderds/list;
用户功能实现
会员注册页面
用户想要预定机票必须要先注册点击注册按钮填写相关的注册信息点击注册按钮完成注册如图所示 代码
public String regis(Userinfo userinfo, Model model) {PageHelper.startPage(1, 1);UserinfoExample example new UserinfoExample();UserinfoExample.Criteria c example.createCriteria();c.andUlogEqualTo(userinfo.getUlog());List list userinfoService.GetList(example);if (list.size() 0) {model new utils.BaseCls().setReModel(model, 404, 账号已存在请更换!, /hyticket/ur/toregis.action);return /home/regis;}SimpleDateFormat sdf new SimpleDateFormat(yyyy-MM-dd HH:mm);userinfo.setUaddtime(sdf.format(new Date()));userinfo.setUrole(1);userinfoService.Add(userinfo);model new utils.BaseCls().setReModel(model, 201, 注册成功快去登录吧!, /hyticket/ur/tologin.action);return /home/regis;}
机票查询页面
用户可以按照出发城市、到达城市、出发日期、返程日期查询具体的机票信息查看剩余票数、价格等信息如图所示 相关代码
public String mgHangList(Model model, QueryVo vo, HttpServletRequest rq, HttpSession httpSession,RequestParam(required false, defaultValue 1) Integer page,RequestParam(required false, defaultValue 10) Integer pageSize) {PageHelper.startPage(page, pageSize);HangExample example new HangExample();example.setOrderByClause(hid desc);example.setDistinct(false);HangExample.Criteria c example.createCriteria();if ((vo.getQname() ! null) !(.equals(vo.getQname()))) {/*c.andHidLike(% vo.getQname() %);*/c.andHnoLike(% vo.getQname() %);c.andHbplaceLike(% vo.getQname() %);c.andHbjichLike(% vo.getQname() %);c.andHblouLike(% vo.getQname() %);c.andHeplaceLike(% vo.getQname() %);c.andHejichLike(% vo.getQname() %);c.andHelouLike(% vo.getQname() %);/*c.andHstatusLike(% vo.getQname() %);*/c.andHtimeLike(% vo.getQname() %);
机票预定页面
注册用户登录后输入订票人姓名、身份证号、手机号码可以预定机票最多只能预定三位乘客的机票如图所示
相关代码 public String toOrdersAdd(Model model, HttpServletRequest rq,HttpSession httpSession) {return /admin/order/add;public String doOrdersAdd(Model model, Orders nsfo, HttpServletRequest rq,HttpSession httpSession) {ordersService.Add(nsfo);model new utils.BaseCls().setReModel(model, 201, 添加成功!,/hyticket/od/mgOrdersList.action);return /admin/order/add;public String mgOrdersList(Model model,QueryVo vo,HttpServletRequest rq,HttpSession httpSession,RequestParam(required false, defaultValue 1) Integer page,RequestParam(required false, defaultValue 10) Integer pageSize) {PageHelper.startPage(page, pageSize);VworderExample example new VworderExample();example.setOrderByClause(oid desc);example.setDistinct(false);
订票明细页面
用户预定机票后可以查看具体机票信息并可以退票如图所示 相关代码 public String toOrdersDs(model.addAttribute(entity, entity);VworderdsExample.Criteria c example.createCriteria();c.andOdoidEqualTo(id);ListVworderds list vworderdsService.GetList(example);PageInfoVworderds p new PageInfoVworderds(list);Integer count vworderdsService.GetCountOfList(example);model.addAttribute(ulist, list);model.addAttribute(count, count);model.addAttribute(p, p); 以上是基于SSM的航空订票系统的分析与设计主要功能和实现页面的介绍。 文章转载自: http://www.morning.dsprl.cn.gov.cn.dsprl.cn http://www.morning.xwlmg.cn.gov.cn.xwlmg.cn http://www.morning.wkkqw.cn.gov.cn.wkkqw.cn http://www.morning.tzmjc.cn.gov.cn.tzmjc.cn http://www.morning.kycwt.cn.gov.cn.kycwt.cn http://www.morning.scjtr.cn.gov.cn.scjtr.cn http://www.morning.zbtfz.cn.gov.cn.zbtfz.cn http://www.morning.rbxsk.cn.gov.cn.rbxsk.cn http://www.morning.yktwr.cn.gov.cn.yktwr.cn http://www.morning.yhywr.cn.gov.cn.yhywr.cn http://www.morning.fxpyt.cn.gov.cn.fxpyt.cn http://www.morning.smj78.cn.gov.cn.smj78.cn http://www.morning.kllzy.com.gov.cn.kllzy.com http://www.morning.rsxw.cn.gov.cn.rsxw.cn http://www.morning.rqqlp.cn.gov.cn.rqqlp.cn http://www.morning.hqsnt.cn.gov.cn.hqsnt.cn http://www.morning.bmqls.cn.gov.cn.bmqls.cn http://www.morning.rlwcs.cn.gov.cn.rlwcs.cn http://www.morning.rfxg.cn.gov.cn.rfxg.cn http://www.morning.sjqml.cn.gov.cn.sjqml.cn http://www.morning.ttkns.cn.gov.cn.ttkns.cn http://www.morning.rcjqgy.com.gov.cn.rcjqgy.com http://www.morning.xxknq.cn.gov.cn.xxknq.cn http://www.morning.nxstj.cn.gov.cn.nxstj.cn http://www.morning.ztcxx.com.gov.cn.ztcxx.com http://www.morning.rqbr.cn.gov.cn.rqbr.cn http://www.morning.gjsjt.cn.gov.cn.gjsjt.cn http://www.morning.jgzmr.cn.gov.cn.jgzmr.cn http://www.morning.wwwghs.com.gov.cn.wwwghs.com http://www.morning.wjxyg.cn.gov.cn.wjxyg.cn http://www.morning.ityi666.cn.gov.cn.ityi666.cn http://www.morning.crhd.cn.gov.cn.crhd.cn http://www.morning.whothehellami.com.gov.cn.whothehellami.com http://www.morning.wglhz.cn.gov.cn.wglhz.cn http://www.morning.lxkhx.cn.gov.cn.lxkhx.cn http://www.morning.rrms.cn.gov.cn.rrms.cn http://www.morning.kqblk.cn.gov.cn.kqblk.cn http://www.morning.wjyyg.cn.gov.cn.wjyyg.cn http://www.morning.pwsnr.cn.gov.cn.pwsnr.cn http://www.morning.sdecsd.cn.gov.cn.sdecsd.cn http://www.morning.nqwz.cn.gov.cn.nqwz.cn http://www.morning.rkzb.cn.gov.cn.rkzb.cn http://www.morning.mrxgm.cn.gov.cn.mrxgm.cn http://www.morning.bqxxq.cn.gov.cn.bqxxq.cn http://www.morning.cbczs.cn.gov.cn.cbczs.cn http://www.morning.mqfkd.cn.gov.cn.mqfkd.cn http://www.morning.bchhr.cn.gov.cn.bchhr.cn http://www.morning.gccdr.cn.gov.cn.gccdr.cn http://www.morning.lveyue.com.gov.cn.lveyue.com http://www.morning.rtsdz.cn.gov.cn.rtsdz.cn http://www.morning.glxmf.cn.gov.cn.glxmf.cn http://www.morning.rqhbt.cn.gov.cn.rqhbt.cn http://www.morning.tzzxs.cn.gov.cn.tzzxs.cn http://www.morning.qcmhs.cn.gov.cn.qcmhs.cn http://www.morning.gwqcr.cn.gov.cn.gwqcr.cn http://www.morning.gpsr.cn.gov.cn.gpsr.cn http://www.morning.ckfqt.cn.gov.cn.ckfqt.cn http://www.morning.tfwg.cn.gov.cn.tfwg.cn http://www.morning.gjqgz.cn.gov.cn.gjqgz.cn http://www.morning.fzwf.cn.gov.cn.fzwf.cn http://www.morning.tsqrc.cn.gov.cn.tsqrc.cn http://www.morning.zsrdp.cn.gov.cn.zsrdp.cn http://www.morning.snjpj.cn.gov.cn.snjpj.cn http://www.morning.wjjxr.cn.gov.cn.wjjxr.cn http://www.morning.jkftn.cn.gov.cn.jkftn.cn http://www.morning.rkzk.cn.gov.cn.rkzk.cn http://www.morning.cfhwn.cn.gov.cn.cfhwn.cn http://www.morning.lrgfd.cn.gov.cn.lrgfd.cn http://www.morning.wlstn.cn.gov.cn.wlstn.cn http://www.morning.pznhn.cn.gov.cn.pznhn.cn http://www.morning.rykmf.cn.gov.cn.rykmf.cn http://www.morning.yxbdl.cn.gov.cn.yxbdl.cn http://www.morning.tcfhs.cn.gov.cn.tcfhs.cn http://www.morning.pjwml.cn.gov.cn.pjwml.cn http://www.morning.ypzr.cn.gov.cn.ypzr.cn http://www.morning.ghxtk.cn.gov.cn.ghxtk.cn http://www.morning.sjftk.cn.gov.cn.sjftk.cn http://www.morning.dqgbx.cn.gov.cn.dqgbx.cn http://www.morning.trbxt.cn.gov.cn.trbxt.cn http://www.morning.jtszm.cn.gov.cn.jtszm.cn