前台首页功能界面图
用户注册、登录界面图
我的地址界面图

管理员登录界面图
用户管理界面图
食堂管理界面图
消息留言管理界面图
留言板管理界面图
美食资讯管理界面图
菜系分类管理界面图
摘 要本文以Java为开发技术,实现了一个高校校园点餐系统。高校校园点餐系统的主要使用者分为管理员;个人中心、用户管理、食堂管理、食堂菜单管理、菜系分类管理、消息留言管理、留言板管理、系统管理、订单管理,用户;个人中心、消息留言管理、我的收藏管理、订单管理,食堂;个人中心、食堂菜单管理、菜系分类管理、消息留言管理、订单管理,前台首页;首页、食堂菜单、资讯、留言反馈、我的、跳转到后台、购物车等功能。通过这些功能模块的设计,基本上实现了整个高校校园点餐系统的过程。
课题背景及意义以往的高校校园点餐系统相关信息管理,都是工作人员手工统计。这种方式不但时效性低,而且需要查找和变更的时候很不方便。随着科学的进步,技术的成熟,计算机信息化也日新月异的发展,社会也已经深刻的认识,计算机功能非常的强大,计算机已经进入了人类社会发展的各个领域,并且发挥着十分重要的作用。本系统利用网络沟通、计算机信息存储管理,有着与传统的方式所无法替代的优点。比如计算检索速度特别快、可靠性特别高、存储容量特别大、保密性特别好、可保存时间特别长、成本特别低等。在工作效率上,能够得到极大地提高,延伸至服务水平也会有好的收获,有了网络,在线高校校园点餐系统的各方面的管理更加科学和系统,更加规范和简便。
研究现状随着计算机网络的不断渗透,人们的生活与工作、学习的方式也在慢慢发生变化。传统的用户和食堂相关信息管理方式一般都采取人工的方式,信息的获取、整理、修改、存储等工作还停留在人工阶段。这种方式一方面需要花费大量的人力、物力和金钱,交互起来比较困难,而且会浪费时间;另一方面对用户和食堂等信息的管理,特别是随着用户和食堂数量的递增,查询、修改起来特别困难;最后由于用户和食堂等其他信息的不断增加,信息的存储也成为了难题。
部分源码/ 菜品评价 后端接口 @author @email @date /@RestController@RequestMapping("/caipinpingjia")public class CaipinpingjiaController { @Autowired private CaipinpingjiaService caipinpingjiaService; / 后端列表 / @RequestMapping("/page") public R page(@RequestParam Map<String, Object> params,CaipinpingjiaEntity caipinpingjia, HttpServletRequest request){ String tableName = request.getSession().getAttribute("tableName").toString(); if(tableName.equals("yonghu")) { caipinpingjia.setYonghuming((String)request.getSession().getAttribute("username")); } EntityWrapper<CaipinpingjiaEntity> ew = new EntityWrapper<CaipinpingjiaEntity>(); PageUtils page = caipinpingjiaService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, caipinpingjia), params), params)); return R.ok().put("data", page); } / 前端列表 / @RequestMapping("/list") public R list(@RequestParam Map<String, Object> params,CaipinpingjiaEntity caipinpingjia, HttpServletRequest request){ EntityWrapper<CaipinpingjiaEntity> ew = new EntityWrapper<CaipinpingjiaEntity>(); PageUtils page = caipinpingjiaService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, caipinpingjia), params), params)); return R.ok().put("data", page); } / 列表 / @RequestMapping("/lists") public R list( CaipinpingjiaEntity caipinpingjia){ EntityWrapper<CaipinpingjiaEntity> ew = new EntityWrapper<CaipinpingjiaEntity>(); ew.allEq(MPUtil.allEQMapPre( caipinpingjia, "caipinpingjia")); return R.ok().put("data", caipinpingjiaService.selectListView(ew)); } / 查询 / @RequestMapping("/query") public R query(CaipinpingjiaEntity caipinpingjia){ EntityWrapper< CaipinpingjiaEntity> ew = new EntityWrapper< CaipinpingjiaEntity>(); ew.allEq(MPUtil.allEQMapPre( caipinpingjia, "caipinpingjia")); CaipinpingjiaView caipinpingjiaView = caipinpingjiaService.selectView(ew); return R.ok("查询菜品评价成功").put("data", caipinpingjiaView); } / 后端详情 / @RequestMapping("/info/{id}") public R info(@PathVariable("id") Long id){ CaipinpingjiaEntity caipinpingjia = caipinpingjiaService.selectById(id); return R.ok().put("data", caipinpingjia); } / 前端详情 / @RequestMapping("/detail/{id}") public R detail(@PathVariable("id") Long id){ CaipinpingjiaEntity caipinpingjia = caipinpingjiaService.selectById(id); return R.ok().put("data", caipinpingjia); } / 后端保存 / @RequestMapping("/save") public R save(@RequestBody CaipinpingjiaEntity caipinpingjia, HttpServletRequest request){ caipinpingjia.setId(new Date().getTime()+new Double(Math.floor(Math.random()1000)).longValue()); //ValidatorUtils.validateEntity(caipinpingjia); caipinpingjiaService.insert(caipinpingjia); return R.ok(); } / 前端保存 / @RequestMapping("/add") public R add(@RequestBody CaipinpingjiaEntity caipinpingjia, HttpServletRequest request){ caipinpingjia.setId(new Date().getTime()+new Double(Math.floor(Math.random()1000)).longValue()); //ValidatorUtils.validateEntity(caipinpingjia); caipinpingjiaService.insert(caipinpingjia); return R.ok(); } / 修改 / @RequestMapping("/update") public R update(@RequestBody CaipinpingjiaEntity caipinpingjia, HttpServletRequest request){ //ValidatorUtils.validateEntity(caipinpingjia); caipinpingjiaService.updateById(caipinpingjia);//全部更新 return R.ok(); } / 删除 / @RequestMapping("/delete") public R delete(@RequestBody Long[] ids){ caipinpingjiaService.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<CaipinpingjiaEntity> wrapper = new EntityWrapper<CaipinpingjiaEntity>(); 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("yonghu")) { wrapper.eq("yonghuming", (String)request.getSession().getAttribute("username")); } int count = caipinpingjiaService.selectCount(wrapper); return R.ok().put("count", count); } }
结论
本系统通过对JSP和Mysql数据库的简介,从硬件和软件两反面说明了高校校园点餐系统的可行性,本文结论及研究成果如下:实现了JSP与Mysql相结合构建的高校校园点餐系统,网站可以响应式展示。通过本次高校校园点餐系统的研究与实现,我感到学海无涯,学习是没有终点的,而且实践出真知,只有多动手才能尽快掌握它,经验对系统的开发非常重要,经验不足,就难免会有许多考虑不周之处。比如要有美观的界面,更完善的功能,才能吸引更多的用户。