add default account to frontend
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace common\models;
|
||||
|
||||
use Yii;
|
||||
use yii\db\ActiveRecord;
|
||||
|
||||
/**
|
||||
* This is the model class for table "ticket".
|
||||
@@ -140,7 +141,7 @@ class Ticket extends \common\models\BaseFitnessActiveRecord
|
||||
$query->andWhere(['id_card' => $card->id_card]);
|
||||
$query->andWhere( 'start <= :today' ,[ 'today' => $today] );
|
||||
$query->andWhere( 'end >= :today' ,[ 'today' => $today] );
|
||||
|
||||
$query->orderBy([ "created_at" =>SORT_DESC] );
|
||||
$result = $query->all();
|
||||
|
||||
return $result;
|
||||
|
||||
Reference in New Issue
Block a user