重置
This commit is contained in:
parent
0df7e107ec
commit
15436bddd0
@ -709,13 +709,13 @@ class OrderService extends Service
|
||||
if ($counts) {
|
||||
throw new NotAllowedException('订单中的卡已存在于其他类型订单中,不能进行重置');
|
||||
}
|
||||
|
||||
// 转销售重置
|
||||
} else {
|
||||
// 替卡重置
|
||||
$sql = 'UPDATE virtual_order_cards_partition SET sim=original_sim,original_sim=0
|
||||
WHERE original_sim IN (
|
||||
SELECT DISTINCT SIM FROM virtual_order_cards_partition WHERE type=0 AND order_id = ?
|
||||
WHERE sim IN (
|
||||
SELECT DISTINCT SIM FROM virtual_order_cards_partition WHERE type = ? AND order_id = ?
|
||||
)';
|
||||
DB::statement($sql, [$id]);
|
||||
DB::statement($sql, [$node->type, $id]);
|
||||
|
||||
$node->order_status = 0;
|
||||
$node->save();
|
||||
|
Loading…
x
Reference in New Issue
Block a user