
本科毕业设计(论文)
中文题目:基于 Android 系统的唯快点餐接单平台的设计
与实现
英文题目:Design and Implementation of Order-Received
Platform on Android
学 院: 软件学院
专 业: 软件工程
学生姓名: XXXX
学 号: XXXX
指导教师: XXXX
北京交通大学
2016 年 5 月

学士论文版权使用授权书
本学士论文作者完全了解北京交通大学有关保留、使用学士论文的规定。特授权北
京交通大学可以将学士论文的全部或部分内容编入有关数据库进行检索,提供阅览服
务,并采用影印、缩印或扫描等复制手段保存、汇编以供查阅和借阅。
(保密的学位论文在解密后适用本授权说明)
学位论文作者签名: 指导教师签名:
签字日期: 年 月 日 签字日期: 年 月 日

北京交通大学毕业设计(论文) 中文摘要
i
中文摘要
近几年,外卖客户端将互联网和外卖做了一个很好的结合,深深地改变了人们点餐
的方式。据调查,外卖占餐饮行业的营业份额和堂食比起来,还是堂食比较多,所以我
们希望针对堂食开发一个点餐系统,让人们可以在线点餐,到店就食。
本文讲述的接单 APP 的设计与实现是点餐系统的一部分,接单 APP 主要有五个模
块:基础模块,订单模块,菜品管理模块,蓝牙模块,对账模块。基础模块包括登录,
心跳服务,网络连接与数据解析,本地数据缓存等基础功能。订单模块包括订单推送,
实时显示今日已接收订单,实时显示今日未接收订单,按照日期查询历史订单,点击查
看订单详情等功能。对账模块是按照日期查询商家的财务支出,收入,奖励等账单数据,
方便我们公司与商家对账。蓝牙模块负责蓝牙打印机的搜索和连接,发送数据和指令给
蓝牙打印机,如果打印机断开了可以自动重新连接。菜品管理模块能够分类浏览商家的
菜品图片与名称,提供菜品上架和下架的管理。整个项目的搭建,采取 MVC 的架构模式,
使用了友盟推送,友盟自动更新,Restrofit,Fresco,OKHttp,superslim 等业内常用的
第三方框架。
目前,随着我们公司项目的推广与试点,接单客户端已经在多家餐馆与我们的点餐
客户端配套使用,使餐馆在原来的点餐流程上增加了一套基于移动互联网的点餐流程,
从而给顾客带来更好地点餐体验。
关键词:安卓;接单;OKHttp;Fresco

北京交通大学毕业设计(论文) 英文摘要
ii
ABSTRACT
In recent years, the take-out client is a very good combination of the Internet and take
out,which bring a deeply change in the way of people eat. According to the survey, the
business share of takeaway for food is more than the business share of eat-in in catering
industry, so we hope to develop a food-ordering system, so that people can ordering online
and eat in the restaurant.
This article describes how to design and develop a order-received client based on
Android.Order-received client mainly has five modules: basic module, order module, menu
management module, bluetooth module and reconciliation module. The basic module includes
login, heartbeat service, network connection and data analysis, local data cache and other
basic functions. Order module includes orders push, real-time display today-received orders,
real-time display today-not-receive orders, inquiry history orders by data, click to view details
of orders and other functions.Reconciliation module includes inquiry busines financial
expenditure, income, incentives and other billing data by date, which is convenient for the
reconciliation with the business. Bluetooth module is responsible for the search and
connection of Bluetooth printer, send data and instructions to the Bluetooth printer, if the
printer is disconnected, it can be automatically re connected. Menu management module can
be used to browse dishes by category and provide dishes on shelves and off shelves function.
The entire project is builded according to the MVC architecture model with a lot of third party
fundations which is commonly used in industry,such as U-Push,Youmeng automatic update,
Restrofit, Fresco, OKHttp, Superslim.
At present, with the promotion of our company’s pilot project, order-received client has
been used in several restaurants, which adds a set based on mobile Internet ordering process
besides the original ordering process,thus to bring better dining experience for customers.
KEYWORDS:Android;Take-out;OkHttp;Fresco

北京交通大学毕业设计(论文) 目录
iii
目 录
中文摘要 .................................................................. I
ABSTRACT ................................................................. II
目 录 ................................................................ III
1 引言 ................................................................ 1
1.1 项目背景与意义 ................................................... 1
1.2 本人的主要工作 ................................................... 1
1.3 论文的组织结构 ................................................... 2
1.4 本章小结 ......................................................... 2
2 相关技术介绍 ........................................................ 3
2.1 U-PUSH ............................................................. 3
2.2 RESTROFIT ........................................................... 3
2.3 OKHTTP ............................................................. 4
2.4 FRESCO .............................................................. 4
2.5 友盟自动更新 ....................................................... 4
2.6 JSON ............................................................... 5
3 系统需求分析 ........................................................ 6
3.1 功能性需求 ....................................................... 6
3.1.1 整体功能概述 ................................................. 6
3.1.2 基础模块 ..................................................... 7
3.1.3 订单模块 ..................................................... 7
3.1.4 蓝牙模块 ..................................................... 9
3.1.5 对账模块 ..................................................... 9
3.1.6 菜品管理模块 ................................................ 10
3.2 非功能性需求分析 ................................................ 11
3.3 本章小结 ........................................................ 11
4 系统概要设计 ....................................................... 12
4.1 点餐系统整体架构 ................................................ 12
4.2 接单客户端架构 .................................................. 13