Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
takeout_sbk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yunpeng.song
takeout_sbk
Commits
64b5e5f3
Commit
64b5e5f3
authored
Jun 30, 2018
by
wuyang.zou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug: 新增 MSR_NO 卡号信息 + 新增 同步POS本地数据库打印信息是否成功
parent
d1e25051
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
86 additions
and
25 deletions
+86
-25
fmTakeout/Control/flowControl.cpp
+0
-0
fmTakeout/Control/flowControl.h
+77
-16
fmTakeout/Model/orderObject.h
+9
-9
No files found.
fmTakeout/Control/flowControl.cpp
View file @
64b5e5f3
This diff is collapsed.
Click to expand it.
fmTakeout/Control/flowControl.h
View file @
64b5e5f3
...
...
@@ -66,8 +66,8 @@ private:
BillSocket
*
m_pullOrderListSocket
;
BillSocket
*
m_procOrderSocket
;
BillSocket
*
m_pullDishesSocket
;
//
为Simphony在FM外卖插件中维护<有效待拉取订单>的
容器
QMap
<
QString
,
OrderObject
*>
m_
simValidOrderMapQueue
;
//
FM外卖插件维护的有效订单
容器
QMap
<
QString
,
OrderObject
*>
m_
FmOrdersMap
;
// 是否第一次获取到门店信息
bool
m_bFirstRecvInfo
;
bool
m_bLoginResult
;
...
...
@@ -76,10 +76,10 @@ private:
JQHttpServer
::
TcpServerManage
*
m_tcpServerManage
;
QMap
<
QString
,
QMultiMap
<
QString
,
dishesObject
>
>
m_dishesMap
;
//
入账list
QStringList
m_
ordersEntry
List
;
//
等待Simphony拉取的有效订单队列list[orderId]
QStringList
m_
simValidOrders
List
;
//订单号与pos短号映射
QMap
<
QString
,
QString
>
m_orderIdToPos
SalesId
Map
;
QMap
<
QString
,
QString
>
m_orderIdToPos
CheckNo
Map
;
//记录当前订单操作
QMap
<
QString
,
int
>
m_orderOperatePair
;
//订单拉取记录
...
...
@@ -243,20 +243,81 @@ private slots:
* */
QJsonObject
_PackHttpReplyJson
(
const
int
status
,
const
QString
&
msg
,
const
QJsonObject
&
data
,
const
int
&
iscontinue
);
/**
*功能:
清空订单Map里
的订单
*功能:
定时清空订单Map里两天前
的订单
*参数:无
*返回:无
**/
void
_ClearOrder
();
bool
_GetReplyJson
(
const
QJsonObject
&
content
,
QJsonObject
&
data
,
QString
&
error
);
bool
_Get01ReplyJson
(
const
QJsonObject
&
content
,
QJsonObject
&
data
,
QString
&
error
);
bool
_Get02ReplyJson
(
const
QJsonObject
&
content
,
QJsonObject
&
data
,
QString
&
error
);
bool
_Get03ReplyJson
(
const
QJsonObject
&
content
,
QJsonObject
&
data
,
QString
&
error
);
bool
_Get04ReplyJson
(
const
QJsonObject
&
content
,
QJsonObject
&
data
,
QString
&
error
);
bool
_Get11ReplyJson
(
const
QJsonObject
&
content
,
QJsonObject
&
data
,
QString
&
error
);
bool
_Get12ReplyJson
(
const
QJsonObject
&
content
,
QJsonObject
&
data
,
QString
&
error
);
bool
_GetLoginReplyJson
(
const
QJsonObject
&
content
,
QString
&
error
);
bool
_GetQueryReplyJson
(
QJsonObject
&
data
,
QString
&
error
,
const
QString
&
orderId
);
void
_CrondClearExpireOrder
();
/**
*功能:FM外卖插件为响应Simphony请求准备返回数据
*参数:1、请求json参数;2、准备返回请求数据的Buff;3、返回错误信息;
*返回:是否准备成功;
**/
bool
_ResponseSimphonyRequest
(
const
QJsonObject
&
content
,
QJsonObject
&
data
,
QString
&
error
);
/**
*功能:FM外卖插件为响应Simphony请求[action:01 -> 拉取订单]准备返回数据
*参数:1、请求json参数;2、准备返回请求数据的Buff;3、返回错误信息;
*返回:是否准备成功;
**/
bool
_ResponseSimphony01Request
(
const
QJsonObject
&
content
,
QJsonObject
&
data
,
QString
&
error
);
/**
*功能:FM外卖插件为响应Simphony请求[action:02 -> 确认订单]准备返回数据
*参数:1、请求json参数;2、准备返回请求数据的Buff;3、返回错误信息;
*返回:是否准备成功;
**/
bool
_ResponseSimphony02Request
(
const
QJsonObject
&
content
,
QJsonObject
&
data
,
QString
&
error
);
/**
*功能:FM外卖插件为响应Simphony请求[action:03 -> 取消订单]准备返回数据
*参数:1、请求json参数;2、准备返回请求数据的Buff;3、返回错误信息;
*返回:是否准备成功;
**/
bool
_ResponseSimphony03Request
(
const
QJsonObject
&
content
,
QJsonObject
&
data
,
QString
&
error
);
/**
*功能:FM外卖插件为响应Simphony请求[action:04 -> 汇报订单Sim/POS产生的小票号]准备返回数据
*参数:1、请求json参数;2、准备返回请求数据的Buff;3、返回错误信息;
*返回:是否准备成功;
**/
bool
_ResponseSimphony04Request
(
const
QJsonObject
&
content
,
QJsonObject
&
data
,
QString
&
error
);
/**
*功能:FM外卖插件为响应Simphony请求[action:05 -> simphony更新订单数据到POS本地数据库以以便POS打印小票及汇总单信息]准备返回数据
*参数:1、请求json参数;2、准备返回请求数据的Buff;3、返回错误信息;
*返回:是否准备成功;
**/
bool
_ResponseSimphony05Request
(
const
QJsonObject
&
content
,
QJsonObject
&
data
,
QString
&
error
);
/**
*功能:FM外卖插件为响应Simphony请求[action:11 -> Sim/POS推送订单到FM插件]准备返回数据
*参数:1、请求json参数;2、准备返回请求数据的Buff;3、返回错误信息;
*返回:是否准备成功;
**/
bool
_ResponseSimphony11Request
(
const
QJsonObject
&
content
,
QJsonObject
&
data
,
QString
&
error
);
/**
*功能:FM外卖插件为响应Simphony请求[action:12 -> Sim/POS推送门店营业状态]准备返回数据
*参数:1、请求json参数;2、准备返回请求数据的Buff;3、返回错误信息;
*返回:是否准备成功;
**/
bool
_ResponseSimphony12Request
(
const
QJsonObject
&
content
,
QJsonObject
&
data
,
QString
&
error
);
/**
*功能:FM外卖插件响应Simphony请求时,如果外卖插件未登录则进行登陆;
*参数:1、请求json参数;2、返回错误信息;
*返回:是否登陆成功;
**/
bool
_ResponseSimReqTryLogin
(
const
QJsonObject
&
content
,
QString
&
error
);
/**
*功能:FM外卖插件为响应Simphony请求[查询FM插件第一条订单数据作为返回数据]准备返回数据
*参数:1、请求json参数;2、准备返回请求数据的Buff;3、返回错误信息;
*返回:是否准备成功;
**/
bool
_ResponseSimReqFristOrderData
(
QJsonObject
&
data
,
QString
&
error
,
const
QString
&
orderId
);
// 单位转换
QString
_Penny2Dollar
(
int
penny
);
...
...
fmTakeout/Model/orderObject.h
View file @
64b5e5f3
...
...
@@ -86,17 +86,17 @@ public:
QString
watercourseId
;
//流水号(取餐号)
QString
customerId
;
//用户编号
QString
customerName
;
//用户名称
QString
posCheckNo
;
QString
posCheckNo
;
// POS小票号
QString
phone
;
QString
msr_no
;
QString
msr_no
;
//msr卡号
QString
storeId
;
QString
storeName
;
QString
storeAddress
;
QString
channel
;
QString
payWay
;
QString
deliveryTime
;
QString
riderName
;
QString
riderPhone
;
QString
deliveryTime
;
//配送时间
QString
riderName
;
//骑手名
QString
riderPhone
;
//骑手电话
QString
createTime
;
QString
confirmTime
;
QString
sendTime
;
...
...
@@ -107,8 +107,8 @@ public:
QString
invoiceType
;
QString
invoiceTitle
;
QString
invoiceTaxpayerId
;
QString
firstName
;
QString
lastName
;
QString
firstName
;
//用户名字;
QString
lastName
;
//用户姓;
QString
longitude
;
QString
latitude
;
QString
street
;
...
...
@@ -125,8 +125,8 @@ public:
int
payStatus
;
int
refundStatus
;
int
deliveryChannel
;
int
pu
t
Type
;
int
pu
t
Times
;
int
pu
shOrder
Type
;
int
pu
shOrder
Times
;
bool
isPush
;
bool
isCancle
;
QString
getChannelName
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment