|
@@ -124,7 +124,7 @@ class Period extends \common\components\ActiveRecord
|
|
|
if (empty($periodNum)) {
|
|
if (empty($periodNum)) {
|
|
|
$this->nowPeriodArr = static::find()
|
|
$this->nowPeriodArr = static::find()
|
|
|
->where(' 1=1')
|
|
->where(' 1=1')
|
|
|
- ->orderBy('PERIOD_NUM ASC')
|
|
|
|
|
|
|
+ ->orderBy('PERIOD_NUM DESC')
|
|
|
->asArray()
|
|
->asArray()
|
|
|
->one();
|
|
->one();
|
|
|
if (empty($this->nowPeriodArr)) {
|
|
if (empty($this->nowPeriodArr)) {
|