shish 2 年之前
父节点
当前提交
139f71226e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      console/controllers/OrderController.php

+ 1 - 1
console/controllers/OrderController.php

@@ -59,8 +59,8 @@ class OrderController extends Controller
         //查询已经过期10天的订单
         //查询已经过期10天的订单
         $query->where(['status' => 3])->andWhere(['>', 'fhTime', $startDate])->andWhere(['<=', 'fhTime', $endDate]);
         $query->where(['status' => 3])->andWhere(['>', 'fhTime', $startDate])->andWhere(['<=', 'fhTime', $endDate]);
         $query->orderBy('deadline ASC');
         $query->orderBy('deadline ASC');
+        echo $startDate . ' ' . $endDate;
         foreach ($query->batch() as $batchCg) {
         foreach ($query->batch() as $batchCg) {
-            echo $startDate . ' ' . $endDate;
             print_r($batchCg);
             print_r($batchCg);
             foreach ($batchCg as $cg) {
             foreach ($batchCg as $cg) {
                 $connection = Yii::$app->db;
                 $connection = Yii::$app->db;