shish il y a 2 ans
Parent
commit
5c58999b46
1 fichiers modifiés avec 11 ajouts et 1 suppressions
  1. 11 1
      console/controllers/RefundController.php

+ 11 - 1
console/controllers/RefundController.php

@@ -72,7 +72,17 @@ class RefundController extends Controller
     //退款数据更新 ./yii refund/update
     public function actionUpdate()
     {
-
+        ini_set('memory_limit', '2045M');
+        set_time_limit(0);
+        $query = new \yii\db\Query();
+        $query->from(RefundOrder::tableName());
+        $query->where(['ptStyle' => 2]);
+        foreach ($query->batch(10) as $batch) {
+            foreach ($batch as $refund) {
+                print_r($refund);
+                die;
+            }
+        }
     }
 
 }