Commit 34e96fe0 by wuyang.zou

fix insert table error, db table column add more

parent 0d33c109
......@@ -150,7 +150,9 @@ bool SimProcOrderDB::insertSimProcOrder(const QString &orderId,const QString& cr
}
bool result;
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()) {
QLOG_ERROR()<<"[<<<<---SimProcOrderDB:insertSimProcOrder Error--->>>>]"<<query.lastError().text()<<QString::number(query.lastError().type());
result = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment