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
8ebb5aa7
Commit
8ebb5aa7
authored
May 27, 2020
by
wuyang.zou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Version 2.2020.5.16
1、完善 WSG-MOD 用星说 2、进行 预约单准备功能
parent
53f66b32
Pipeline
#21735
failed with stage
in 0 seconds
Changes
10
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
192 additions
and
43 deletions
+192
-43
fmTakeout/Control/flowControl.cpp
+0
-0
fmTakeout/Control/flowControl.h
+1
-1
fmTakeout/DTools/printCupStickPosDB.cpp
+5
-3
fmTakeout/DTools/printSumBillPosDB.cpp
+109
-5
fmTakeout/DTools/printSumBillPosDB.h
+28
-0
fmTakeout/LocalServer/loaclHttpServer.cpp
+6
-3
fmTakeout/Model/orderObject.cpp
+24
-17
fmTakeout/Model/orderObject.h
+14
-9
fmTakeout/fmTakeout.rc
+4
-4
fmTakeout/preDefine.h
+1
-1
No files found.
fmTakeout/Control/flowControl.cpp
View file @
8ebb5aa7
This diff is collapsed.
Click to expand it.
fmTakeout/Control/flowControl.h
View file @
8ebb5aa7
...
@@ -475,7 +475,7 @@ public slots:
...
@@ -475,7 +475,7 @@ public slots:
* 参数:NULL
* 参数:NULL
* 返回:Json对象
* 返回:Json对象
* */
* */
QJsonObject
_PackHttpReplyJson
(
const
int
status
,
const
QString
&
msg
,
const
QJsonObject
&
data
,
const
int
&
iscontinue
);
QJsonObject
_PackHttpReplyJson
(
const
int
status
,
const
QString
&
msg
,
const
QJsonObject
&
data
,
const
int
&
iscontinue
,
const
QString
&
orderId
);
/**
/**
*功能:FM外卖插件为响应Simphony请求准备返回数据
*功能:FM外卖插件为响应Simphony请求准备返回数据
...
...
fmTakeout/DTools/printCupStickPosDB.cpp
View file @
8ebb5aa7
...
@@ -213,9 +213,9 @@ bool PrintCupStickPosDB::insertOrderProduct(OrderObject* orderObj,const QString&
...
@@ -213,9 +213,9 @@ bool PrintCupStickPosDB::insertOrderProduct(OrderObject* orderObj,const QString&
}
}
}
}
/********************* 拼单-商品关联数据; **************************/
/*********************
预约+
拼单-商品关联数据; **************************/
//
"MOD" == orderObj->channel && "4" == orderObj->platformSource && "30" == orderObj->businessType
//
orderType: 7 预约 ; 8 拼单;
else
if
(
"30"
==
orderObj
->
businessType
)
{
else
if
(
7
==
orderObj
->
orderType
||
8
==
orderObj
->
orderType
)
{
for
(
int
i
=
0
;
i
<
orderObj
->
proList
.
count
();
i
++
)
{
for
(
int
i
=
0
;
i
<
orderObj
->
proList
.
count
();
i
++
)
{
dishesObject
*
dish
=
orderObj
->
proList
.
at
(
i
);
dishesObject
*
dish
=
orderObj
->
proList
.
at
(
i
);
query
.
prepare
(
"INSERT INTO tb_main_prod_refinfo(chk_num, order_id, order_status, create_datetime, "
query
.
prepare
(
"INSERT INTO tb_main_prod_refinfo(chk_num, order_id, order_status, create_datetime, "
...
@@ -273,6 +273,8 @@ bool PrintCupStickPosDB::insertOrderProduct(OrderObject* orderObj,const QString&
...
@@ -273,6 +273,8 @@ bool PrintCupStickPosDB::insertOrderProduct(OrderObject* orderObj,const QString&
}
}
return
false
;
}
}
...
...
fmTakeout/DTools/printSumBillPosDB.cpp
View file @
8ebb5aa7
...
@@ -575,10 +575,16 @@ bool PrintSumBillPosDB::insertOrderSumBill(OrderObject* orderObj,const QString&
...
@@ -575,10 +575,16 @@ bool PrintSumBillPosDB::insertOrderSumBill(OrderObject* orderObj,const QString&
int
tempBusinessType
=
orderObj
->
businessType
.
toInt
();
int
tempBusinessType
=
orderObj
->
businessType
.
toInt
();
if
(
"WSG-MOD"
==
orderObj
->
channel
&&
"4"
==
orderObj
->
platformSource
)
if
(
"WSG-MOD"
==
orderObj
->
channel
&&
"4"
==
orderObj
->
platformSource
)
tempBusinessType
=
20
;
tempBusinessType
=
20
;
if
(
7
==
orderObj
->
orderType
)
{
tempBusinessType
=
10
;
}
else
if
(
8
==
orderObj
->
orderType
)
{
tempBusinessType
=
30
;
}
query
.
addBindValue
(
tempBusinessType
);
// --订单业务类型: 10:预约单 20:WSG-杯贴祝福 30:拼单
query
.
addBindValue
(
tempBusinessType
);
// --订单业务类型: 10:预约单 20:WSG-杯贴祝福 30:拼团
query
.
addBindValue
(
orderObj
->
appointedTime
);
// --
query
.
addBindValue
(
orderObj
->
expectDate
);
// -- 预约取餐时间
query
.
addBindValue
(
orderObj
->
appointedRemindTemplate
);
QString
tempAppointedRemindTemplate
=
QString
::
number
(
orderObj
->
inAdvanceTakemeal
)
+
";"
+
orderObj
->
reserveMakeTime
;
// 预约模板;
query
.
addBindValue
(
tempAppointedRemindTemplate
);
query
.
addBindValue
(
orderObj
->
orderType
);
query
.
addBindValue
(
orderObj
->
orderType
);
QString
tempChannel
=
(
"WSG-MOD"
==
orderObj
->
channel
)
?
"MOD"
:
orderObj
->
channel
;
QString
tempChannel
=
(
"WSG-MOD"
==
orderObj
->
channel
)
?
"MOD"
:
orderObj
->
channel
;
...
@@ -618,8 +624,8 @@ bool PrintSumBillPosDB::insertOrderSumBill(OrderObject* orderObj,const QString&
...
@@ -618,8 +624,8 @@ bool PrintSumBillPosDB::insertOrderSumBill(OrderObject* orderObj,const QString&
.
arg
((
orderObj
->
waybillId
).
length
()
?
orderObj
->
waybillId
:
QString
(
"0"
))
.
arg
((
orderObj
->
waybillId
).
length
()
?
orderObj
->
waybillId
:
QString
(
"0"
))
.
arg
(
orderObj
->
pickupCode
.
length
()
==
0
?
0
:
orderObj
->
pickupCode
.
toInt
())
.
arg
(
orderObj
->
pickupCode
.
length
()
==
0
?
0
:
orderObj
->
pickupCode
.
toInt
())
.
arg
(
orderObj
->
riderPhone
).
arg
(
orderObj
->
riderName
).
arg
(
abs
(
orderObj
->
disPlateformFee
))
.
arg
(
orderObj
->
riderPhone
).
arg
(
orderObj
->
riderName
).
arg
(
abs
(
orderObj
->
disPlateformFee
))
.
arg
(
orderObj
->
memo
).
arg
(
orderObj
->
secretSignal
).
arg
(
orderObj
->
consumerRemark
).
arg
(
tempBusinessType
).
arg
(
orderObj
->
appointedTim
e
)
.
arg
(
orderObj
->
memo
).
arg
(
orderObj
->
secretSignal
).
arg
(
orderObj
->
consumerRemark
).
arg
(
tempBusinessType
).
arg
(
orderObj
->
expectDat
e
)
.
arg
(
orderObj
->
a
ppointedRemindTemplate
).
arg
(
orderObj
->
orderType
).
arg
(
orderObj
->
channel
).
arg
(
orderObj
->
platformSource
).
arg
(
orderObj
->
payWay
)
.
arg
(
tempA
ppointedRemindTemplate
).
arg
(
orderObj
->
orderType
).
arg
(
orderObj
->
channel
).
arg
(
orderObj
->
platformSource
).
arg
(
orderObj
->
payWay
)
.
arg
(
orderObj
->
customerId
).
arg
(
orderObj
->
customerName
).
arg
(
orderObj
->
msr_no
).
arg
(
orderObj
->
storeId
).
arg
(
orderObj
->
subStoreId
)
.
arg
(
orderObj
->
customerId
).
arg
(
orderObj
->
customerName
).
arg
(
orderObj
->
msr_no
).
arg
(
orderObj
->
storeId
).
arg
(
orderObj
->
subStoreId
)
.
arg
(
orderObj
->
storeName
).
arg
(
orderObj
->
storeAddress
).
arg
(
orderObj
->
isPackage
).
arg
(
orderObj
->
orderDiscount
).
arg
(
orderObj
->
totalPrice
);
.
arg
(
orderObj
->
storeName
).
arg
(
orderObj
->
storeAddress
).
arg
(
orderObj
->
isPackage
).
arg
(
orderObj
->
orderDiscount
).
arg
(
orderObj
->
totalPrice
);
}
else
{
}
else
{
...
@@ -630,6 +636,103 @@ bool PrintSumBillPosDB::insertOrderSumBill(OrderObject* orderObj,const QString&
...
@@ -630,6 +636,103 @@ bool PrintSumBillPosDB::insertOrderSumBill(OrderObject* orderObj,const QString&
return
result
;
return
result
;
}
}
int
PrintSumBillPosDB
::
syncOrderDataToDB
(
OrderObject
*
orderObj
)
{
// 0: 同步失败;1: 无需同步;2: 同步成功;
int
syncAppointOrder
=
1
;
// 1、同步 预约当日订单的 "提前到店" 信息,避免出现 遗漏;
if
(
OrderObject
::
Refunded
!=
orderObj
->
orderStatus
&&
7
==
orderObj
->
orderType
&&
orderObj
->
inAdvanceTakemeal
)
{
syncAppointOrder
=
syncAppointOrderInfo
(
orderObj
);
QLOG_INFO
()
<<
QString
(
"[<<<<---syncOrderDataToDB syncAppointOrderInfo OrderId %1 ArriverAhead:%2 syncAppointOrder:%3--->>>>]"
)
.
arg
(
orderObj
->
id
).
arg
(
orderObj
->
inAdvanceTakemeal
).
arg
(
syncAppointOrder
);
}
// 2、同步其他......
return
syncAppointOrder
;
}
int
PrintSumBillPosDB
::
syncAppointOrderInfo
(
OrderObject
*
orderObj
)
{
QMutexLocker
mutex
(
&
m_mutex
);
// 0: 更新失败; 1:无需更新; 2: 更新成功;
int
syncRet
=
0
;
if
(
!
m_sqlDb
.
open
())
{
QLOG_ERROR
()
<<
"[<<<<---SqlServer Database:Open Failed--->>>>]"
<<
m_sqlDb
.
lastError
().
text
();
return
false
;
}
// 先查找记录(退单无需更新) 判断是否需要同步;在记录同步记录结果;
QSqlQuery
query
(
m_sqlDb
);
query
.
prepare
(
QString
(
" select appointed_remindTemplate from tb_msr_customer_info where order_id='%1' and order_status !=6"
).
arg
(
orderObj
->
id
));
if
(
!
query
.
exec
())
{
QLOG_ERROR
()
<<
query
.
lastError
().
text
()
<<
QString
(
"[<<<<---SqlServer Database: select OrderId %1 appointed_remindTemplate Failed--->>>>]"
).
arg
(
orderObj
->
id
);
syncRet
=
0
;
}
else
{
if
(
query
.
first
()
&&
query
.
value
(
0
).
toString
().
length
()
)
{
QString
tempRemindTemplate
=
query
.
value
(
0
).
toString
().
split
(
';'
).
first
();
if
(
orderObj
->
inAdvanceTakemeal
!=
tempRemindTemplate
.
toInt
()
)
{
QSqlQuery
updateQuery
(
m_sqlDb
);
updateQuery
.
prepare
(
QString
(
"update tb_msr_customer_info set appointed_remindTemplate='%1' where order_id='%2' and order_status !=6"
)
.
arg
(
QString
::
number
(
orderObj
->
inAdvanceTakemeal
)
+
";"
+
orderObj
->
reserveMakeTime
).
arg
(
orderObj
->
id
));
if
(
!
updateQuery
.
exec
())
{
QLOG_ERROR
()
<<
updateQuery
.
lastError
().
text
()
<<
QString
(
"[<<<<---SqlServer Database:Sync OrderId %1 appointed_remindTemplate Failed--->>>>]"
).
arg
(
orderObj
->
id
);
syncRet
=
0
;
}
else
{
QLOG_INFO
()
<<
QString
(
"[<<<<---SqlServer Database:Sync OrderId %1 appointed_remindTemplate success--->>>>]"
).
arg
(
orderObj
->
id
);
syncRet
=
2
;
}
}
else
{
syncRet
=
1
;
}
}
else
{
syncRet
=
1
;
}
}
m_sqlDb
.
close
();
return
syncRet
;
}
int
PrintSumBillPosDB
::
updateOrderDataToDB
(
OrderObject
*
orderObj
,
const
QString
&
cloumnName
)
{
// 0: 更新失败;1: 无需更新; 2: 更新成功;
int
updateAppointOrder
=
1
;
if
(
"appointed_remindTemplate"
==
cloumnName
)
{
// 1、更新 预约当日订单的 "提前到店" 信息,避免出现 遗漏;
if
(
OrderObject
::
Refunded
!=
orderObj
->
orderStatus
&&
7
==
orderObj
->
orderType
&&
orderObj
->
inAdvanceTakemeal
)
{
updateAppointOrder
=
updateAppointOrderInfo
(
orderObj
)
?
2
:
0
;
QLOG_INFO
()
<<
QString
(
"[<<<<---updateOrderDataToDB updateAppointOrderInfo OrderId %1 ArriverAhead:%2 updateAppointOrder:%3--->>>>]"
)
.
arg
(
orderObj
->
id
).
arg
(
orderObj
->
inAdvanceTakemeal
).
arg
(
updateAppointOrder
);
}
}
return
updateAppointOrder
;
}
bool
PrintSumBillPosDB
::
updateAppointOrderInfo
(
OrderObject
*
orderObj
)
{
QMutexLocker
mutex
(
&
m_mutex
);
if
(
!
m_sqlDb
.
open
())
{
QLOG_ERROR
()
<<
"[<<<<---SqlServer Database:Open Failed--->>>>]"
<<
m_sqlDb
.
lastError
().
text
();
return
false
;
}
// 0: 更新失败; 2: 更新成功;
bool
updateRet
=
false
;
QSqlQuery
query
(
m_sqlDb
);
query
.
prepare
(
QString
(
"update tb_msr_customer_info set appointed_remindTemplate='%1' where order_id='%2' and order_status !=6"
)
.
arg
(
QString
::
number
(
orderObj
->
inAdvanceTakemeal
)
+
";"
+
orderObj
->
reserveMakeTime
).
arg
(
orderObj
->
id
));
if
(
!
query
.
exec
())
{
QLOG_ERROR
()
<<
query
.
lastError
().
text
()
<<
QString
(
"[<<<<---SqlServer Database:update OrderId %1 appointed_remindTemplate Failed--->>>>]"
).
arg
(
orderObj
->
id
);
updateRet
=
false
;
}
else
{
QLOG_INFO
()
<<
QString
(
"[<<<<---SqlServer Database:Update OrderId %1 appointed_remindTemplate success--->>>>]"
).
arg
(
orderObj
->
id
);
updateRet
=
true
;
}
m_sqlDb
.
close
();
return
updateRet
;
}
bool
PrintSumBillPosDB
::
updateOrderSumBillStatus
(
OrderObject
*
orderObj
,
const
int
&
OrderStatus
){
bool
PrintSumBillPosDB
::
updateOrderSumBillStatus
(
OrderObject
*
orderObj
,
const
int
&
OrderStatus
){
QMutexLocker
mutex
(
&
m_mutex
);
QMutexLocker
mutex
(
&
m_mutex
);
if
(
!
m_sqlDb
.
open
())
{
if
(
!
m_sqlDb
.
open
())
{
...
@@ -651,6 +754,7 @@ bool PrintSumBillPosDB::updateOrderSumBillStatus(OrderObject* orderObj, const in
...
@@ -651,6 +754,7 @@ bool PrintSumBillPosDB::updateOrderSumBillStatus(OrderObject* orderObj, const in
return
result
;
return
result
;
}
}
bool
PrintSumBillPosDB
::
isOrderAndCknoSumBillExist
(
const
QString
&
orderId
,
const
QString
&
posCheckNo
){
bool
PrintSumBillPosDB
::
isOrderAndCknoSumBillExist
(
const
QString
&
orderId
,
const
QString
&
posCheckNo
){
QMutexLocker
mutex
(
&
m_mutex
);
QMutexLocker
mutex
(
&
m_mutex
);
if
(
!
m_sqlDb
.
open
())
{
if
(
!
m_sqlDb
.
open
())
{
...
...
fmTakeout/DTools/printSumBillPosDB.h
View file @
8ebb5aa7
...
@@ -58,6 +58,34 @@ public:
...
@@ -58,6 +58,34 @@ public:
bool
insertOrderSumBill
(
OrderObject
*
orderObj
,
const
QString
&
posCheckNo
);
bool
insertOrderSumBill
(
OrderObject
*
orderObj
,
const
QString
&
posCheckNo
);
/**
/**
*功能: 根据订单对象指针 同步pos本地数据库中数据;
*参数:[1]订单对象指针
*返回: 0: 同步失败;1: 无需同步;2: 同步成功;
**/
int
syncOrderDataToDB
(
OrderObject
*
orderObj
);
/**
*功能: 根据订单对象 同步pos数据库中汇总单中的预约信息;
*参数:[1]订单对象指针
*返回: 0: 同步失败;1: 无需同步;2: 同步成功;
**/
int
syncAppointOrderInfo
(
OrderObject
*
orderObj
);
/**
*功能: 根据订单对象指针 更新pos本地数据库中数据;
*参数:[1]订单对象指针
*返回: 0: 更新失败;1: 无需更新; 2: 更新成功;
**/
int
updateOrderDataToDB
(
OrderObject
*
orderObj
,
const
QString
&
cloumnName
);
/**
*功能: 根据订单对象 更新 pos数据库中汇总单中的预约信息;
*参数:[1]订单号
*返回:true操作成功,false失败
**/
bool
updateAppointOrderInfo
(
OrderObject
*
orderObj
);
/**
*功能: 根据订单ID 更新 pos本地数据库中汇总单状态信息;
*功能: 根据订单ID 更新 pos本地数据库中汇总单状态信息;
*参数:[1]订单号[2] [3] [4] [5] [6]
*参数:[1]订单号[2] [3] [4] [5] [6]
*返回:true操作成功,false失败
*返回:true操作成功,false失败
...
...
fmTakeout/LocalServer/loaclHttpServer.cpp
View file @
8ebb5aa7
...
@@ -26,9 +26,10 @@ void LoaclHttpServer::run()
...
@@ -26,9 +26,10 @@ void LoaclHttpServer::run()
QJsonParseError
jsonError
;
QJsonParseError
jsonError
;
QJsonObject
recvObject
;
QJsonObject
recvObject
;
QJsonObject
replyObject
;
QJsonObject
replyObject
;
int
status
;
//解析json结果
int
status
;
//解析json结果
QString
msg
;
QString
msg
;
QJsonObject
data
;
//回复的内容json
QString
orderId
=
""
;
//接受推单过来的订单号
QJsonObject
data
;
//回复的内容json
int
iscontinue
=
0
;
int
iscontinue
=
0
;
recvObject
=
QJsonDocument
::
fromJson
(
recvData
.
toUtf8
(),
&
jsonError
).
object
();
recvObject
=
QJsonDocument
::
fromJson
(
recvData
.
toUtf8
(),
&
jsonError
).
object
();
/***解析Http Request json格式: 解析失败***/
/***解析Http Request json格式: 解析失败***/
...
@@ -48,9 +49,11 @@ void LoaclHttpServer::run()
...
@@ -48,9 +49,11 @@ void LoaclHttpServer::run()
if
(
!
FlowControl
::
GetInstance
().
_SimValidOrdersListIsEmpty
())
{
if
(
!
FlowControl
::
GetInstance
().
_SimValidOrdersListIsEmpty
())
{
iscontinue
=
1
;
iscontinue
=
1
;
}
}
orderId
=
recvObject
[
"orderId"
].
toString
();
}
}
/***将FM外卖插件中的合法有效数据返回给上面Http发过来的请求***/
/***将FM外卖插件中的合法有效数据返回给上面Http发过来的请求***/
replyObject
=
FlowControl
::
GetInstance
().
_PackHttpReplyJson
(
status
,
msg
,
data
,
iscontinue
);
replyObject
=
FlowControl
::
GetInstance
().
_PackHttpReplyJson
(
status
,
msg
,
data
,
iscontinue
,
orderId
);
QLOG_INFO
()
<<
QString
::
fromLocal8Bit
(
"[<<<<---FM外卖插件回应Http拉单请求后的返回结果:--->>>>]"
)
<<
replyObject
;
QLOG_INFO
()
<<
QString
::
fromLocal8Bit
(
"[<<<<---FM外卖插件回应Http拉单请求后的返回结果:--->>>>]"
)
<<
replyObject
;
session
->
replyJsonObject
(
replyObject
);
session
->
replyJsonObject
(
replyObject
);
}
}
...
...
fmTakeout/Model/orderObject.cpp
View file @
8ebb5aa7
...
@@ -132,35 +132,42 @@ void OrderObject::FetchDataFromJson(const QJsonObject &json)
...
@@ -132,35 +132,42 @@ void OrderObject::FetchDataFromJson(const QJsonObject &json)
QString
OrderObject
::
getChannelName
()
QString
OrderObject
::
getChannelName
()
{
{
QLOG_INFO
()
<<
QString
(
"[<<<<---OrderObject:getChannelName [%1]--->>>>]"
).
arg
(
channel
);
QLOG_INFO
()
<<
QString
(
"[<<<<---OrderObject:getChannelName [%1]--->>>>]"
).
arg
(
channel
);
if
(
"MOD"
==
channel
&&
3
!=
orderType
)
{
if
(
"MOD"
==
channel
)
{
if
(
"4"
==
platformSource
)
{
if
(
3
==
orderType
)
{
if
(
"30"
==
businessType
)
{
return
QString
::
fromLocal8Bit
(
"星-客诉"
);
return
QString
::
fromLocal8Bit
(
"拼单-MOD"
);
}
else
if
(
7
==
orderType
)
{
}
return
QString
::
fromLocal8Bit
(
"预约-MOD"
);
return
QString
::
fromLocal8Bit
(
"微信-MOD"
);
}
else
if
(
8
==
orderType
)
{
return
QString
::
fromLocal8Bit
(
"拼团-MOD"
);
}
else
{
}
else
{
return
QString
::
fromLocal8Bit
(
"星-MOD"
);
if
(
"4"
==
platformSource
)
{
return
QString
::
fromLocal8Bit
(
"微信-MOD"
);
}
else
{
return
QString
::
fromLocal8Bit
(
"星-MOD"
);
}
}
}
}
else
if
(
"MOD"
==
channel
&&
3
==
orderType
)
{
return
QString
::
fromLocal8Bit
(
"星-客诉"
);
}
else
if
(
"WSG-MOD"
==
channel
)
{
// 兼容渠道名称不统一问题
}
else
if
(
"WSG-MOD"
==
channel
)
{
// 兼容渠道名称不统一问题
return
QString
::
fromLocal8Bit
(
"微信用星说"
);
return
QString
::
fromLocal8Bit
(
"微信用星说"
);
}
else
if
(
"ELE"
==
channel
){
}
else
if
(
"ELE"
==
channel
){
return
QString
::
fromLocal8Bit
(
"饿了么"
);
return
QString
::
fromLocal8Bit
(
"饿了么"
);
}
else
if
(
"MOP"
==
channel
&&
4
!=
orderType
){
}
else
if
(
"MOP"
==
channel
){
if
(
"5"
==
platformSource
)
{
if
(
4
==
orderType
)
{
return
QString
::
fromLocal8Bit
(
"口碑-MOP"
);
return
QString
::
fromLocal8Bit
(
"星-自测"
);
}
else
if
(
7
==
orderType
)
{
return
QString
::
fromLocal8Bit
(
"预约-MOP"
);
}
else
if
(
8
==
orderType
)
{
return
QString
::
fromLocal8Bit
(
"拼团-MOP"
);
}
else
{
}
else
{
return
QString
::
fromLocal8Bit
(
"星-MOP"
);
if
(
"5"
==
platformSource
)
{
return
QString
::
fromLocal8Bit
(
"口碑-MOP"
);
}
else
{
return
QString
::
fromLocal8Bit
(
"星-MOP"
);
}
}
}
}
else
if
(
"MOP"
==
channel
&&
4
==
orderType
){
return
QString
::
fromLocal8Bit
(
"星-自测"
);
}
else
{
}
else
{
return
QString
::
fromLocal8Bit
(
"未知"
);
return
QString
::
fromLocal8Bit
(
"未知"
);
}
}
...
...
fmTakeout/Model/orderObject.h
View file @
8ebb5aa7
...
@@ -84,8 +84,9 @@ class OrderObject : public QObject
...
@@ -84,8 +84,9 @@ class OrderObject : public QObject
Q_PROPERTY
(
QString
platformSource
READ
getPlatformSource
WRITE
setPlatformSource
)
Q_PROPERTY
(
QString
platformSource
READ
getPlatformSource
WRITE
setPlatformSource
)
Q_PROPERTY
(
int
orderIndex
READ
getOrderIndex
WRITE
setOrderIndex
)
Q_PROPERTY
(
int
orderIndex
READ
getOrderIndex
WRITE
setOrderIndex
)
Q_PROPERTY
(
QString
appointedTime
READ
getAppointedTime
WRITE
setAppointedTime
)
Q_PROPERTY
(
QString
expectDate
READ
getExpectDate
WRITE
setExpectDate
)
Q_PROPERTY
(
QString
appointedRemindTemplate
READ
getAppointedRemindTemplate
WRITE
setAppointedRemindTemplate
)
Q_PROPERTY
(
QString
reserveMakeTime
READ
getReserveMakeTime
WRITE
setReserveMakeTime
)
Q_PROPERTY
(
int
inAdvanceTakemeal
READ
getInAdvanceTakemeal
WRITE
setInAdvanceTakemeal
)
Q_PROPERTY
(
QString
subStoreId
READ
getSubStoreId
WRITE
setSubStoreId
)
Q_PROPERTY
(
QString
subStoreId
READ
getSubStoreId
WRITE
setSubStoreId
)
public
:
public
:
...
@@ -181,9 +182,10 @@ public:
...
@@ -181,9 +182,10 @@ public:
QString
makeDeviceId
;
//PMS 更新制作状态的设备Id
QString
makeDeviceId
;
//PMS 更新制作状态的设备Id
QString
businessType
;
//订单业务类型: 10:预约单 20:杯贴祝福 30:拼团
QString
businessType
;
//订单业务类型: 10:预约单 20:杯贴祝福 30:拼团
QString
appointedTime
;
// 预约日期 [预约单-预约日期]
QString
expectDate
;
// 预约时间 [预约单-顾客预计取餐时间]
QString
appointedRemindTemplate
;
// 预约提醒模板【新增字段:string】
QString
reserveMakeTime
;
// 预约制作时间【新增字段:string】
QString
subStoreId
;
// 子门店号 【新增字段:string】
int
inAdvanceTakemeal
;
// 预约单提前到店标志【新增字段:int】
QString
subStoreId
;
// 子门店号 【新增字段:string】
int
forwardPosStatus
;
// 正向单入机状态: 0:未知 1: 成功 2:失败;
int
forwardPosStatus
;
// 正向单入机状态: 0:未知 1: 成功 2:失败;
int
negativePosStatus
;
// 负向单同上;
int
negativePosStatus
;
// 负向单同上;
...
@@ -424,11 +426,14 @@ public:
...
@@ -424,11 +426,14 @@ public:
inline
QString
getSecretSignal
()
const
{
return
secretSignal
;}
inline
QString
getSecretSignal
()
const
{
return
secretSignal
;}
inline
void
setSecretSignal
(
const
QString
&
v
){
secretSignal
=
v
;}
inline
void
setSecretSignal
(
const
QString
&
v
){
secretSignal
=
v
;}
inline
QString
get
AppointedTime
()
const
{
return
appointedTim
e
;}
inline
QString
get
ExpectDate
()
const
{
return
expectDat
e
;}
inline
void
set
AppointedTime
(
const
QString
&
v
){
appointedTim
e
=
v
;}
inline
void
set
ExpectDate
(
const
QString
&
v
){
expectDat
e
=
v
;}
inline
QString
getAppointedRemindTemplate
()
const
{
return
appointedRemindTemplate
;}
inline
QString
getReserveMakeTime
()
const
{
return
reserveMakeTime
;}
inline
void
setAppointedRemindTemplate
(
const
QString
&
v
){
appointedRemindTemplate
=
v
;}
inline
void
setReserveMakeTime
(
const
QString
&
v
){
reserveMakeTime
=
v
;}
inline
int
getInAdvanceTakemeal
()
const
{
return
inAdvanceTakemeal
;}
inline
void
setInAdvanceTakemeal
(
const
int
&
v
){
inAdvanceTakemeal
=
v
;}
inline
QString
getSubStoreId
()
const
{
return
subStoreId
;}
inline
QString
getSubStoreId
()
const
{
return
subStoreId
;}
inline
void
setSubStoreId
(
const
QString
&
v
){
subStoreId
=
v
;}
inline
void
setSubStoreId
(
const
QString
&
v
){
subStoreId
=
v
;}
...
...
fmTakeout/fmTakeout.rc
View file @
8ebb5aa7
...
@@ -7,8 +7,8 @@ IDI_ICON ICON DISCARDABLE "logo.ico"
...
@@ -7,8 +7,8 @@ IDI_ICON ICON DISCARDABLE "logo.ico"
#endif
#endif
VS_VERSION_INFO VERSIONINFO
VS_VERSION_INFO VERSIONINFO
//***每次修改后编译发版必须变更版本号(preDefine.h中APP_VERSION 需要一致)***//
//***每次修改后编译发版必须变更版本号(preDefine.h中APP_VERSION 需要一致)***//
FILEVERSION 2,2020,5,2
1
FILEVERSION 2,2020,5,2
6
PRODUCTVERSION 2,2020,5,2
1
PRODUCTVERSION 2,2020,5,2
6
//*************************************************************************//
//*************************************************************************//
FILEFLAGSMASK 0x3fL
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
#ifdef _DEBUG
...
@@ -31,8 +31,8 @@ VS_VERSION_INFO VERSIONINFO
...
@@ -31,8 +31,8 @@ VS_VERSION_INFO VERSIONINFO
VALUE "OriginalFilename", "fmTakeout.exe"
VALUE "OriginalFilename", "fmTakeout.exe"
VALUE "ProductName", "Delivery Order Plugin"
VALUE "ProductName", "Delivery Order Plugin"
//***每次修改后编译发版必须变更版本号(preDefine.h中APP_VERSION 需要一致)***//
//***每次修改后编译发版必须变更版本号(preDefine.h中APP_VERSION 需要一致)***//
VALUE "ProductVersion", "2.2020.5.2
1
"
VALUE "ProductVersion", "2.2020.5.2
6
"
VALUE "FileVersion", "2.2020.5.2
1
"
VALUE "FileVersion", "2.2020.5.2
6
"
//*************************************************************************//
//*************************************************************************//
END
END
END
END
...
...
fmTakeout/preDefine.h
View file @
8ebb5aa7
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
//#define APP_VERSION "2.2019.916.2"
//#define APP_VERSION "2.2019.916.2"
//#define APP_VERSION "2.2020.26.1"
//#define APP_VERSION "2.2020.26.1"
//#define APP_VERSION "2.2020.312.1"
//#define APP_VERSION "2.2020.312.1"
#define APP_VERSION "2.2020.5.2
1
"
#define APP_VERSION "2.2020.5.2
6
"
//修正版本号时,切记修正 FmTakeout.rc 中的版本号
//修正版本号时,切记修正 FmTakeout.rc 中的版本号
...
...
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