Commit 71903b3a by ss.dai

1

parent d76ecb26
......@@ -335,7 +335,7 @@ void MainForm::onChangeOrderStatus(OrderObject *orderObject, int oldStatus)
for(int i=0; i<table->rowCount(); i++)
{
qDebug() << "数字"<< i << table->item(i, 1)->text() << orderObject->order_view_id;
if(!table->item(i, 1)->text().compare(orderObject->order_view_id))
if(!table->item(i, 1)->text().compare(orderObject->order_view_id.isEmpty()?orderObject->order_id:orderObject->order_view_id))
{
qDebug() << "移除";
table->removeRow(i);
......
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