|
|
@@ -40,10 +40,10 @@ class TestController extends Controller
|
|
|
$query->select(['id', 'sendStatus']);
|
|
|
$query->from(Order::tableName());
|
|
|
foreach ($query->batch() as $batch) {
|
|
|
- print_r($batch);die;
|
|
|
foreach ($batch as $order) {
|
|
|
$id = $order['id'];
|
|
|
\bizGhs\order\classes\OrderClass::updateById($id, ['sendStatus' => -2]);
|
|
|
+ echo $id . "\n";
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -56,7 +56,6 @@ class TestController extends Controller
|
|
|
$query->select(['id', 'sendStatus']);
|
|
|
$query->from(Purchase::tableName());
|
|
|
foreach ($query->batch() as $batch) {
|
|
|
- print_r($batch);die;
|
|
|
foreach ($batch as $order) {
|
|
|
$id = $order['id'];
|
|
|
PurchaseClass::updateById($id, ['sendStatus' => -2]);
|