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
3be388e4
Commit
3be388e4
authored
Aug 11, 2023
by
wuyang.zou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
<1> 缺陷修复:重打印订单小票异常缺陷修复;
V2.2023.7.24
parent
0708a23c
Pipeline
#43312
failed with stage
in 0 seconds
Changes
5
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
20 deletions
+17
-20
fmTakeout/Control/flowControl.cpp
+9
-12
fmTakeout/DTools/printMsgQueueDB.cpp
+2
-2
fmTakeout/floatForm.cpp
+0
-1
fmTakeout/fmTakeout.rc
+4
-4
fmTakeout/preDefine.h
+2
-1
No files found.
fmTakeout/Control/flowControl.cpp
View file @
3be388e4
...
@@ -430,8 +430,7 @@ void FlowControl::_SmartTriggerClickPosBtn(const bool bTimerTrigger)
...
@@ -430,8 +430,7 @@ void FlowControl::_SmartTriggerClickPosBtn(const bool bTimerTrigger)
void
FlowControl
::
_ClickToNotifySimPullOrder
()
void
FlowControl
::
_ClickToNotifySimPullOrder
()
{
{
QLOG_INFO
()
<<
QString
::
fromLocal8Bit
(
"[<<<<---触发按钮点击事件:_ClickToNotifySimPullOrder: m_simValidOrdersList.isEmpty()==%1--->>>>>]"
)
QLOG_INFO
()
<<
QString
(
"[<<<<---_ClickToNotifySimPullOrder: m_simValidOrdersList.isEmpty()==%1--->>>>>]"
).
arg
(
m_simValidOrdersList
.
isEmpty
());
.
arg
(
m_simValidOrdersList
.
isEmpty
());
if
(
!
m_simValidOrdersList
.
isEmpty
())
if
(
!
m_simValidOrdersList
.
isEmpty
())
{
{
m_notifySimPullTimer
->
start
(
1000
*
7
);
m_notifySimPullTimer
->
start
(
1000
*
7
);
...
@@ -448,7 +447,7 @@ void FlowControl::_ClickToNotifySimPullOrder()
...
@@ -448,7 +447,7 @@ void FlowControl::_ClickToNotifySimPullOrder()
if
(
m_blockInputPosWarnningTimer
->
isActive
()
)
{
if
(
m_blockInputPosWarnningTimer
->
isActive
()
)
{
m_blockInputPosWarnningTimer
->
stop
();
m_blockInputPosWarnningTimer
->
stop
();
}
}
m_notifySimPullTimer
->
start
(
1000
*
2
0
);
m_notifySimPullTimer
->
start
(
1000
*
6
0
);
}
}
}
}
...
@@ -794,8 +793,10 @@ void FlowControl::_ReprintOrderTickets(OrderObject* order_p) {
...
@@ -794,8 +793,10 @@ void FlowControl::_ReprintOrderTickets(OrderObject* order_p) {
if
(
3
==
syncDbSuccessNum
)
{
if
(
3
==
syncDbSuccessNum
)
{
if
(
PrintMsgQueueDB
::
getInstance
().
isOrderPrtMsgExist
(
order_p
)
)
{
if
(
PrintMsgQueueDB
::
getInstance
().
isOrderPrtMsgExist
(
order_p
)
)
{
// 针对补打场景: 如果订单打印记录存在则需重置订单各种打印小票的 打印状态;
// 针对补打场景: 如果订单打印记录存在则需重置订单各种打印小票的 打印状态;
PrintMsgQueueDB
::
getInstance
().
resetPrintMsgStatus
(
order_p
,
order_p
->
printOpt
);
bool
retReprint
=
PrintMsgQueueDB
::
getInstance
().
resetPrintMsgStatus
(
order_p
,
order_p
->
printOpt
);
if
(
retReprint
)
{
syncDbSuccessNum
++
;
syncDbSuccessNum
++
;
}
// 销售单/退货单: 打印表需存储2份数据(退货记录中chk_num值 与 销售记录中chk_num值 不等);
// 销售单/退货单: 打印表需存储2份数据(退货记录中chk_num值 与 销售记录中chk_num值 不等);
}
else
{
}
else
{
if
(
order_p
->
skipPrint
)
{
// 补单场景: 跳过打印;
if
(
order_p
->
skipPrint
)
{
// 补单场景: 跳过打印;
...
@@ -841,7 +842,7 @@ void FlowControl::_ReprintOrderTickets(OrderObject* order_p) {
...
@@ -841,7 +842,7 @@ void FlowControl::_ReprintOrderTickets(OrderObject* order_p) {
QLOG_ERROR
()
<<
QString
(
"[<<<<---_ReprintOrderTickets: orderId: %1 Insert 4 Tables Data Failed, Prepare Report Oms--->>>>]"
).
arg
(
order_p
->
id
);
QLOG_ERROR
()
<<
QString
(
"[<<<<---_ReprintOrderTickets: orderId: %1 Insert 4 Tables Data Failed, Prepare Report Oms--->>>>]"
).
arg
(
order_p
->
id
);
// 由于在落库前就会进行 订单商品有效性进行检查: 落库失败:准备将订单数据落库失败的报文消息汇报给 OMS;
// 由于在落库前就会进行 订单商品有效性进行检查: 落库失败:准备将订单数据落库失败的报文消息汇报给 OMS;
// <1>检查商品有效: 则是表字段过长导致插入失败,必须向OMS汇报存储情况;
// <1>检查商品有效: 则是表字段过长导致插入失败,必须向OMS汇报存储情况;
errorStorageOrderMsg
=
QString
(
"Reprint Order Tickets Failed, OrderId: %1 Storage
Pos Local DB Error : %2 %3 %4 %5
"
).
arg
(
orderId
)
errorStorageOrderMsg
=
QString
(
"Reprint Order Tickets Failed, OrderId: %1 Storage
/Reset DB Error:%2,%3,%4,%5
"
).
arg
(
orderId
)
.
arg
(
syncOrderProductTbRet
?
""
:
"OrderProductTb "
).
arg
(
syncOrderPromotionTbRet
?
""
:
"OrderPromotionTb "
)
.
arg
(
syncOrderProductTbRet
?
""
:
"OrderProductTb "
).
arg
(
syncOrderPromotionTbRet
?
""
:
"OrderPromotionTb "
)
.
arg
(
syncOrderSumBillTbRet
?
""
:
"OrderSumBillTb "
).
arg
(
syncOrderPrtMsgTbRet
?
""
:
"OrderPrtMsgTb "
);
.
arg
(
syncOrderSumBillTbRet
?
""
:
"OrderSumBillTb "
).
arg
(
syncOrderPrtMsgTbRet
?
""
:
"OrderPrtMsgTb "
);
...
@@ -1828,8 +1829,8 @@ bool FlowControl::_SendHeart()
...
@@ -1828,8 +1829,8 @@ bool FlowControl::_SendHeart()
emit
doUpdateStoreStatus
(
0
,
0
,
0
,
0
,
0
,
m_existNoAckNotice
);
//NetWork Is Error , Refresh Store Default Status;
emit
doUpdateStoreStatus
(
0
,
0
,
0
,
0
,
0
,
m_existNoAckNotice
);
//NetWork Is Error , Refresh Store Default Status;
}
}
}
else
{
}
else
{
QLOG_INFO
()
<<
QString
(
"[<<<<---Send Heart Finish: code:%1--->>>>]"
).
arg
(
recvJson
[
JSON_LOGINCODE
].
toInt
());
if
(
JSON_STATUSCODE_OK
!=
recvJson
[
JSON_LOGINCODE
].
toInt
())
if
(
JSON_STATUSCODE_OK
!=
recvJson
[
JSON_LOGINCODE
].
toInt
())
{
{
result
=
false
;
result
=
false
;
m_bLastHeartIsError
=
true
;
m_bLastHeartIsError
=
true
;
...
@@ -1928,7 +1929,7 @@ bool FlowControl::_QueryAllChannelStoreStatus()
...
@@ -1928,7 +1929,7 @@ bool FlowControl::_QueryAllChannelStoreStatus()
m_queryStoreStatusErrorCount
++
;
m_queryStoreStatusErrorCount
++
;
// emit setNetStatus(QString::fromLocal8Bit("<font color='#ff0000'>网络不稳定,正在重试</font>"));
// emit setNetStatus(QString::fromLocal8Bit("<font color='#ff0000'>网络不稳定,正在重试</font>"));
}
else
{
}
else
{
QLOG_INFO
()
<<
QString
(
"[<<<<---_QueryAllChannelStoreStatus Finish: code:%1--->>>>]"
).
arg
(
recvJson
[
JSON_LOGINCODE
].
toInt
());
if
(
JSON_STATUSCODE_OK
!=
recvJson
[
JSON_LOGINCODE
].
toInt
())
if
(
JSON_STATUSCODE_OK
!=
recvJson
[
JSON_LOGINCODE
].
toInt
())
{
{
result
=
false
;
result
=
false
;
...
@@ -1956,10 +1957,6 @@ bool FlowControl::_QueryAllChannelStoreStatus()
...
@@ -1956,10 +1957,6 @@ bool FlowControl::_QueryAllChannelStoreStatus()
m_curbsideStoreStatus
=
recvJson
[
JSON_CURBSIDE_STORESTS
].
toInt
();
m_curbsideStoreStatus
=
recvJson
[
JSON_CURBSIDE_STORESTS
].
toInt
();
}
}
QLOG_INFO
()
<<
QString
(
"[<<<<---FlowControl::_QueryAllChannelStoreStatus eleStoreStatus: %1, modStoreStatus: %2 , mopStoreStatus: %3 ,"
" mtModStoreStatus: %4, curbsideStoreStatus:%5, existNoAckNotice:%6 --->>>>]"
)
.
arg
(
m_eleStoreStatus
).
arg
(
m_modStoreStatus
).
arg
(
m_mopStoreStatus
).
arg
(
m_mtModStoreStatus
).
arg
(
m_curbsideStoreStatus
).
arg
(
m_existNoAckNotice
);
emit
doUpdateStoreStatus
(
m_eleStoreStatus
,
m_modStoreStatus
,
m_mopStoreStatus
,
m_mtModStoreStatus
,
m_curbsideStoreStatus
,
m_existNoAckNotice
);
emit
doUpdateStoreStatus
(
m_eleStoreStatus
,
m_modStoreStatus
,
m_mopStoreStatus
,
m_mtModStoreStatus
,
m_curbsideStoreStatus
,
m_existNoAckNotice
);
}
}
}
}
...
...
fmTakeout/DTools/printMsgQueueDB.cpp
View file @
3be388e4
...
@@ -276,7 +276,7 @@ bool PrintMsgQueueDB::resetPrintMsgStatus(const OrderObject* orderObj, const QJs
...
@@ -276,7 +276,7 @@ bool PrintMsgQueueDB::resetPrintMsgStatus(const OrderObject* orderObj, const QJs
// 全部小票;
// 全部小票;
if
(
printAll
)
{
if
(
printAll
)
{
preExeSql
=
QString
(
"update tb_print_msr_customer set print_status=0, reserve0=0, reserve1=0, reserve6=0, create_datetime=
%2
where order_id='%1' "
)
preExeSql
=
QString
(
"update tb_print_msr_customer set print_status=0, reserve0=0, reserve1=0, reserve6=0, create_datetime=
'%2'
where order_id='%1' "
)
.
arg
(
orderObj
->
id
).
arg
(
createTime
);
.
arg
(
orderObj
->
id
).
arg
(
createTime
);
preExeSqlAnother
=
QString
(
"update tb_main_prod_refinfo set prod_resv1=0 where order_id='%1' "
).
arg
(
orderObj
->
id
);
preExeSqlAnother
=
QString
(
"update tb_main_prod_refinfo set prod_resv1=0 where order_id='%1' "
).
arg
(
orderObj
->
id
);
...
@@ -284,7 +284,7 @@ bool PrintMsgQueueDB::resetPrintMsgStatus(const OrderObject* orderObj, const QJs
...
@@ -284,7 +284,7 @@ bool PrintMsgQueueDB::resetPrintMsgStatus(const OrderObject* orderObj, const QJs
// 非全部小票;
// 非全部小票;
}
else
{
}
else
{
preExeSql
=
QString
(
"update tb_print_msr_customer set create_datetime=
%1
, "
).
arg
(
createTime
);
preExeSql
=
QString
(
"update tb_print_msr_customer set create_datetime=
'%1'
, "
).
arg
(
createTime
);
if
(
printSummary
)
{
// 汇总小票
if
(
printSummary
)
{
// 汇总小票
preExeSql
+=
QString
(
" print_status=0 "
);
preExeSql
+=
QString
(
" print_status=0 "
);
...
...
fmTakeout/floatForm.cpp
View file @
3be388e4
...
@@ -261,7 +261,6 @@ void FloatForm::onUpdateStoreStatus(int eleStoreStatus, int modStoreStatus, int
...
@@ -261,7 +261,6 @@ void FloatForm::onUpdateStoreStatus(int eleStoreStatus, int modStoreStatus, int
void
FloatForm
::
RefreshStoreStatus
(){
void
FloatForm
::
RefreshStoreStatus
(){
QLOG_INFO
()
<<
QString
(
"[<<<----FloatForm::RefreshStoreStatus:--->>>>]"
);
int
titleLab_w
=
30
,
titleLab_h
=
18
,
statusLab_w
=
30
,
statusLab_h
=
18
;
int
titleLab_w
=
30
,
titleLab_h
=
18
,
statusLab_w
=
30
,
statusLab_h
=
18
;
int
first_x
=
4
,
first_y
=
25
;
int
first_x
=
4
,
first_y
=
25
;
this
->
ui
->
storeStatusWdg
->
move
(
first_x
,
first_y
);
this
->
ui
->
storeStatusWdg
->
move
(
first_x
,
first_y
);
...
...
fmTakeout/fmTakeout.rc
View file @
3be388e4
...
@@ -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,2023,
6,29
FILEVERSION 2,2023,
7,24
PRODUCTVERSION 2,2023,
6,29
PRODUCTVERSION 2,2023,
7,24
//*************************************************************************//
//*************************************************************************//
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.2023.
6.29
"
VALUE "ProductVersion", "2.2023.
7.24
"
VALUE "FileVersion", "2.2023.
6.29
"
VALUE "FileVersion", "2.2023.
7.24
"
//*************************************************************************//
//*************************************************************************//
END
END
END
END
...
...
fmTakeout/preDefine.h
View file @
3be388e4
...
@@ -48,7 +48,8 @@
...
@@ -48,7 +48,8 @@
//#define APP_VERSION "2.2022.11.30"
//#define APP_VERSION "2.2022.11.30"
//#define APP_VERSION "2.2023.2.23"
//#define APP_VERSION "2.2023.2.23"
//#define APP_VERSION "2.2023.4.12"
//#define APP_VERSION "2.2023.4.12"
#define APP_VERSION "2.2023.6.29"
//#define APP_VERSION "2.2023.6.29"
#define APP_VERSION "2.2023.7.24"
//修正版本号时,切记修正 FmTakeout.rc 中的版本号
//修正版本号时,切记修正 FmTakeout.rc 中的版本号
#define SERVER_PASSWORD "posoperator@freemud.cn"
#define SERVER_PASSWORD "posoperator@freemud.cn"
...
...
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