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
b863a7c8
Commit
b863a7c8
authored
Jun 03, 2020
by
wuyang.zou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Version 2.2020.6.20
1、将POS 开单时间 精确到s; 通过DLL 同步到插件,进行插库处理;
parent
8ebb5aa7
Pipeline
#22020
failed with stage
in 19 seconds
Changes
5
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
9 deletions
+18
-9
fmTakeout/Control/flowControl.cpp
+4
-1
fmTakeout/DTools/printSumBillPosDB.cpp
+7
-2
fmTakeout/DTools/printSumBillPosDB.h
+1
-1
fmTakeout/fmTakeout.rc
+4
-4
fmTakeout/preDefine.h
+2
-1
No files found.
fmTakeout/Control/flowControl.cpp
View file @
b863a7c8
...
@@ -1926,6 +1926,7 @@ bool FlowControl::_ResponseSimphony04Request(const QJsonObject &content, QJsonOb
...
@@ -1926,6 +1926,7 @@ bool FlowControl::_ResponseSimphony04Request(const QJsonObject &content, QJsonOb
if
(
m_bLoginResult
&&
content
.
contains
(
"orderId"
)){
if
(
m_bLoginResult
&&
content
.
contains
(
"orderId"
)){
QString
orderId
=
content
[
"orderId"
].
toString
();
QString
orderId
=
content
[
"orderId"
].
toString
();
QString
posCheckNo
=
content
[
"posSaleId"
].
toString
();
QString
posCheckNo
=
content
[
"posSaleId"
].
toString
();
if
(
posCheckNo
.
isEmpty
())
{
if
(
posCheckNo
.
isEmpty
())
{
posCheckNo
=
m_orderIdToPosCheckNoMap
.
value
(
orderId
);
posCheckNo
=
m_orderIdToPosCheckNoMap
.
value
(
orderId
);
}
}
...
@@ -2065,6 +2066,8 @@ bool FlowControl::_ResponseSimphony05Request(const QJsonObject &content, QJsonOb
...
@@ -2065,6 +2066,8 @@ bool FlowControl::_ResponseSimphony05Request(const QJsonObject &content, QJsonOb
if
(
m_bLoginResult
&&
content
.
contains
(
"orderId"
)){
if
(
m_bLoginResult
&&
content
.
contains
(
"orderId"
)){
QString
orderId
=
content
[
"orderId"
].
toString
();
QString
orderId
=
content
[
"orderId"
].
toString
();
QString
posCheckNo
=
content
[
"posSaleId"
].
toString
();
QString
posCheckNo
=
content
[
"posSaleId"
].
toString
();
QString
posCheckTime
=
content
[
"posCheckTime"
].
toString
();
if
(
posCheckNo
.
isEmpty
())
if
(
posCheckNo
.
isEmpty
())
{
{
error
=
QString
::
fromLocal8Bit
(
"Request Action05: %1 Delivery Order: Check Num Can't Empty"
).
arg
(
orderId
);
error
=
QString
::
fromLocal8Bit
(
"Request Action05: %1 Delivery Order: Check Num Can't Empty"
).
arg
(
orderId
);
...
@@ -2101,7 +2104,7 @@ bool FlowControl::_ResponseSimphony05Request(const QJsonObject &content, QJsonOb
...
@@ -2101,7 +2104,7 @@ bool FlowControl::_ResponseSimphony05Request(const QJsonObject &content, QJsonOb
retSyncOrderPrintInfo
=
1
;
retSyncOrderPrintInfo
=
1
;
}
/*****POS本地数据库不存在 orderId &&posCheckNo*********/
}
/*****POS本地数据库不存在 orderId &&posCheckNo*********/
else
{
else
{
bRet
=
PrintSumBillPosDB
::
getInstance
().
insertOrderSumBill
(
order_p
,
posCheckNo
);
bRet
=
PrintSumBillPosDB
::
getInstance
().
insertOrderSumBill
(
order_p
,
posCheckNo
,
posCheckTime
);
if
(
bRet
){
if
(
bRet
){
retSyncOrderPrintInfo
=
1
;
retSyncOrderPrintInfo
=
1
;
}
}
...
...
fmTakeout/DTools/printSumBillPosDB.cpp
View file @
b863a7c8
...
@@ -527,7 +527,7 @@ PrintSumBillPosDB &PrintSumBillPosDB::getInstance()
...
@@ -527,7 +527,7 @@ PrintSumBillPosDB &PrintSumBillPosDB::getInstance()
return
printSumBillPosDB
;
return
printSumBillPosDB
;
}
}
bool
PrintSumBillPosDB
::
insertOrderSumBill
(
OrderObject
*
orderObj
,
const
QString
&
posCheckNo
){
bool
PrintSumBillPosDB
::
insertOrderSumBill
(
OrderObject
*
orderObj
,
const
QString
&
posCheckNo
,
const
QString
&
posCheckTime
){
QMutexLocker
mutex
(
&
m_mutex
);
QMutexLocker
mutex
(
&
m_mutex
);
if
(
!
m_sqlDb
.
open
())
{
if
(
!
m_sqlDb
.
open
())
{
QLOG_ERROR
()
<<
"[<<<<---SqlServer Database:Open Failed--->>>>]"
<<
m_sqlDb
.
lastError
().
text
();
QLOG_ERROR
()
<<
"[<<<<---SqlServer Database:Open Failed--->>>>]"
<<
m_sqlDb
.
lastError
().
text
();
...
@@ -552,8 +552,13 @@ bool PrintSumBillPosDB::insertOrderSumBill(OrderObject* orderObj,const QString&
...
@@ -552,8 +552,13 @@ bool PrintSumBillPosDB::insertOrderSumBill(OrderObject* orderObj,const QString&
}
else
{
temp_customerSex
=
""
;
}
}
else
{
temp_customerSex
=
""
;
}
query
.
addBindValue
(
temp_customerSex
);
// --顾客-性别
query
.
addBindValue
(
temp_customerSex
);
// --顾客-性别
query
.
addBindValue
(
0
);
// --顾客-生日
query
.
addBindValue
(
0
);
// --顾客-生日
QDateTime
qdaTi
=
QDateTime
::
currentDateTimeUtc
();
QDateTime
qdaTi
=
QDateTime
::
currentDateTimeUtc
();
query
.
addBindValue
(
qdaTi
.
addSecs
(
60
*
60
*
8
).
toString
(
"yyyy-MM-dd hh:mm:ss"
));
// --POS出小票时间
QString
posCheckOpenTime
=
posCheckTime
.
length
()
?
qdaTi
.
addSecs
(
60
*
60
*
8
).
toString
(
"yyyy-MM-dd "
)
+
posCheckTime
:
qdaTi
.
addSecs
(
60
*
60
*
8
).
toString
(
"yyyy-MM-dd hh:mm:ss"
);
query
.
addBindValue
(
posCheckOpenTime
);
// --POS开单时间
query
.
addBindValue
(
FlowControl
::
GetInstance
().
_GetCashierId
());
// --订单处理者
query
.
addBindValue
(
FlowControl
::
GetInstance
().
_GetCashierId
());
// --订单处理者
query
.
addBindValue
(
""
);
// --变更订单时间 //??????????????????????????????????????????
query
.
addBindValue
(
""
);
// --变更订单时间 //??????????????????????????????????????????
query
.
addBindValue
(
""
);
// --变更订单作者 [*****后期更新*****]
query
.
addBindValue
(
""
);
// --变更订单作者 [*****后期更新*****]
...
...
fmTakeout/DTools/printSumBillPosDB.h
View file @
b863a7c8
...
@@ -55,7 +55,7 @@ public:
...
@@ -55,7 +55,7 @@ public:
*参数:[1]订单号 [2]小票号
*参数:[1]订单号 [2]小票号
*返回:true操作成功,false失败
*返回:true操作成功,false失败
**/
**/
bool
insertOrderSumBill
(
OrderObject
*
orderObj
,
const
QString
&
posCheckNo
);
bool
insertOrderSumBill
(
OrderObject
*
orderObj
,
const
QString
&
posCheckNo
,
const
QString
&
posCheckTime
);
/**
/**
*功能: 根据订单对象指针 同步pos本地数据库中数据;
*功能: 根据订单对象指针 同步pos本地数据库中数据;
...
...
fmTakeout/fmTakeout.rc
View file @
b863a7c8
...
@@ -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,26
FILEVERSION 2,2020,
6,20
PRODUCTVERSION 2,2020,
5,26
PRODUCTVERSION 2,2020,
6,20
//*************************************************************************//
//*************************************************************************//
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.26
"
VALUE "ProductVersion", "2.2020.
6.20
"
VALUE "FileVersion", "2.2020.
5.26
"
VALUE "FileVersion", "2.2020.
6.20
"
//*************************************************************************//
//*************************************************************************//
END
END
END
END
...
...
fmTakeout/preDefine.h
View file @
b863a7c8
...
@@ -26,7 +26,8 @@
...
@@ -26,7 +26,8 @@
//#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.26"
//#define APP_VERSION "2.2020.5.26"
#define APP_VERSION "2.2020.6.20"
//修正版本号时,切记修正 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