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
34e96fe0
Commit
34e96fe0
authored
Sep 20, 2023
by
wuyang.zou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix insert table error, db table column add more
parent
0d33c109
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
fmTakeout/DTools/simProcOrderDB.cpp
+3
-1
No files found.
fmTakeout/DTools/simProcOrderDB.cpp
View file @
34e96fe0
...
@@ -150,7 +150,9 @@ bool SimProcOrderDB::insertSimProcOrder(const QString &orderId,const QString& cr
...
@@ -150,7 +150,9 @@ bool SimProcOrderDB::insertSimProcOrder(const QString &orderId,const QString& cr
}
}
bool
result
;
bool
result
;
QSqlQuery
query
(
m_sqlDb
);
QSqlQuery
query
(
m_sqlDb
);
query
.
prepare
(
QString
(
"insert into SimProcOrderTable values('%1',0,0,0,0,NUll,'%6')"
).
arg
(
orderId
).
arg
(
creatTime
));
query
.
prepare
(
QString
(
"insert into SimProcOrderTable(orderId,isPushed,isRefund,isReport,isBackReport,posCheckNo,creatTime) "
" values( '%1', 0, 0, 0, 0, NUll, '%2' ) "
).
arg
(
orderId
).
arg
(
creatTime
));
if
(
!
query
.
exec
())
{
if
(
!
query
.
exec
())
{
QLOG_ERROR
()
<<
"[<<<<---SimProcOrderDB:insertSimProcOrder Error--->>>>]"
<<
query
.
lastError
().
text
()
<<
QString
::
number
(
query
.
lastError
().
type
());
QLOG_ERROR
()
<<
"[<<<<---SimProcOrderDB:insertSimProcOrder Error--->>>>]"
<<
query
.
lastError
().
text
()
<<
QString
::
number
(
query
.
lastError
().
type
());
result
=
false
;
result
=
false
;
...
...
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