canyin-project/ybcy/commands/OrderController.php

18 lines
445 B
PHP
Raw Normal View History

2024-11-01 16:07:54 +08:00
<?php
namespace app\commands;
use yii;
use yii\console\Controller;
use yii\console\ExitCode;
class OrderController extends Controller{
public function actionIndex(){
$data=(new \yii\db\Query())
->from('{{%ims_ybwm_instore_order}}')
->where(['state'=>1,'payAt'=>0])
->andWhere(['<=','createdAt',time()-60])
->orderBy('id asc')->limit(20)->all();
print_r($data);exit;
}
}