|
|
|
@ -725,7 +725,7 @@ class IPOService extends AdminBaseService |
|
|
|
|
|
|
|
// 查询bot_user_us_pre_stock_order表,即所有申购了该股票的订单记录,修改其status状态为3 |
|
|
|
Log::info("新股上市 - 修改股票申购状态:pre_stock_id = " . $preInStock['id']); |
|
|
|
$stockOrderList = Db::table($table_obj['order_table'])->where(['pre_stock_id' => $preInStock['id']])->select()->toArray(); |
|
|
|
$stockOrderList = Db::table($table_obj['order_table'])->where(['pre_stock_id' => $preInStock['id'], 'status' => 2])->select()->toArray(); |
|
|
|
if (!empty($stockOrderList)) { |
|
|
|
foreach ($stockOrderList as $itm) { |
|
|
|
Db::table($table_obj['order_table'])->where('id', $itm['id'])->update(['status' => 3]); |
|
|
|
|