Commit d2471c94 authored by hangjun83's avatar hangjun83

罗恩测试工具

parent 104a320d
......@@ -60,13 +60,14 @@ class RhawnToolsService
$total = $connection->table('soitems')
->where('so_id',$order->so_id)
->select(DB::raw('sum(si_amount) as amount'))
->get();
->get()->toArray();
$connection->table('sorders')
->where('so_id',$order->so_id)
->update([
'so_total' => $total->amount,
'so_total' => $total[0]->amount,
]);
SimpleLogs::writeLog('订单号 : '.$order->so_id.'总价变更为:'$total[0]->amount.'更新成功',__CLASS__.':updateCustomerOrdersPricesByDiscount','error');
}
}
$connection->commit();
......
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