virtual_order_optional_package_cards
This commit is contained in:
parent
f62c71a512
commit
e9b2c38179
@ -83,6 +83,7 @@ class AddedOrderSync extends Command
|
||||
|
||||
$virtualTable = str_replace('real_', 'virtual_', $table);
|
||||
|
||||
if (!in_array($virtualTable, ['virtual_order_optional_package_cards', 'virtual_order_additional_package_cards'])) {
|
||||
$starttime = $this->datetime->copy()->startOfMonth()->startOfDay();
|
||||
$endtime = $this->datetime->copy()->endOfMonth()->endOfDay();
|
||||
|
||||
@ -95,6 +96,7 @@ class AddedOrderSync extends Command
|
||||
foreach ($data as &$value) {
|
||||
$value['virtual_order_id'] = $orders[$value['sim']] ?? 0;
|
||||
}
|
||||
}
|
||||
|
||||
DB::table($table)->upsert($data, ['sim', 'order_id'], true);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user