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