Commit 3a07af36 by ss.dai

无修改

parent cf78f901
......@@ -119,12 +119,12 @@ bool FmPlugin::DoOrderEntry(const OrderObject *orderObject, const QString &cashi
int custid = -1;
_InsertInto_p_t_fmwm_custinfo(custid);
// 开启事务
if(!m_db.transaction())
{
error = m_db.lastError().text();
m_db.close();
return false;
}
// if(!m_db.transaction())
// {
// error = m_db.lastError().text();
// m_db.close();
// return false;
// }
// 插入三张临时表后执行存储过程有一个失败则回滚
if(_InsertInto_d_t_food_fmbill0(cashierId, cashierName, shiftId, shiftName, custid))
{
......@@ -145,7 +145,7 @@ bool FmPlugin::DoOrderEntry(const OrderObject *orderObject, const QString &cashi
}
// 回滚
error = m_lastError;
m_db.rollback();
// m_db.rollback();
m_db.close();
return 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